Skip to content

Commit

Permalink
Reset simulation to start when resetting groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Noble committed Aug 7, 2017
1 parent add9084 commit 3a8ace1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ class SCENE_OT_cm_groups_reset(Operator):
groupName = StringProperty()

def execute(self, context):
context.scene.frame_set(context.scene.cm_sim_start_frame)
bpy.ops.scene.cm_stop()

if bpy.context.active_object is not None:
bpy.ops.object.mode_set(mode='OBJECT')
scene = context.scene
Expand Down

0 comments on commit 3a8ace1

Please sign in to comment.