Skip to content

Commit

Permalink
Clears animation from proper frame for 'meshOnly'
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanimation committed Oct 18, 2018
1 parent 2753dcb commit c3784fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/aglist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,10 @@ def setMeshesOnly(self, context):
curGroup.objects.unlink(obj)
removedObjs.append(obj)
if ag.animated:
# set current_frame to animation start frame
origFrame = scn.frame_current
scn.frame_set(ag.frameWithOrigLoc)
# clear animation
clearAnimation(removedObjs)
# set current_frame back to to original frame
scn.frame_set(origFrame)

0 comments on commit c3784fe

Please sign in to comment.