Skip to content

Commit 97aa654

Browse files
committed
Fixed error preventing multiple animations
1 parent d63ce4f commit 97aa654

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

buttons/createBuildAnimation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def createAnim(self):
6464
print("\ncreating build animation...")
6565
# initialize vars
6666
scn, ag = getActiveContextInfo()
67+
self.objects_to_move = [obj for obj in bpy.data.groups[ag.group_name].objects if obj.type not in props.ignoredTypes]
6768

6869
# ensure operation can run
6970
if not self.isValid(scn, ag):
@@ -77,8 +78,6 @@ def createAnim(self):
7778
ag.lastLayerVelocity = getObjectVelocity()
7879
origGroup = bpy.data.groups[ag.group_name]
7980
self.origFrame = scn.frame_current
80-
# set up origGroup variable
81-
self.objects_to_move = [obj for obj in bpy.data.groups[ag.group_name].objects if obj.type not in props.ignoredTypes]
8281
if self.action == "UPDATE":
8382
# set current_frame to animation start frame
8483
scn.frame_set(ag.frameWithOrigLoc)

0 commit comments

Comments
 (0)