Skip to content

Commit

Permalink
multiple view layer fix
Browse files Browse the repository at this point in the history
technically its just skipping evaluation when the frame hasn't changed
shteeve3d committed Jun 11, 2023
1 parent 58ad9fa commit 7aa771f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wiggle_2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bl_info = {
"name": "Wiggle 2",
"author": "Steve Miller",
"version": (2, 2, 1),
"version": (2, 2, 2),
"blender": (3, 00, 0),
"location": "3d Viewport > Animation Panel",
"description": "Simulate spring-like physics on Bone transforms",
@@ -448,6 +448,7 @@ def stretch(target, position, fac):

@persistent
def wiggle_pre(scene):
if (scene.wiggle.lastframe == scene.frame_current) and not scene.wiggle.reset: return
if not scene.wiggle_enable:
reset_scene()
return
@@ -488,6 +489,7 @@ def wiggle_pre(scene):

@persistent
def wiggle_post(scene,dg):
if (scene.wiggle.lastframe == scene.frame_current) and not scene.wiggle.reset: return
if scene.wiggle.reset: return
if not scene.wiggle_enable: return
if scene.wiggle.is_rendering: return

0 comments on commit 7aa771f

Please sign in to comment.