[Bf-extensions-cvs] [c3348263] master: animation_animall: Fix T69509 Quick smoke broken

Damien Picard noreply at git.blender.org
Fri Sep 6 09:52:11 CEST 2019


Commit: c3348263dc26d6272db88ed94b73caa3ddb3a3fd
Author: Damien Picard
Date:   Fri Sep 6 09:47:27 2019 +0200
Branches: master
https://developer.blender.org/rBAc3348263dc26d6272db88ed94b73caa3ddb3a3fd

animation_animall: Fix T69509 Quick smoke broken

The previous commit rBA0a6d3d725f0b broke quick smoke by adding a
handler to force viewport refresh. This commit adds a check
to refresh only data which have animation data. So quick smoke
is not really fixed but the bug happens only if the data is animated.

===================================================================

M	animation_animall.py

===================================================================

diff --git a/animation_animall.py b/animation_animall.py
index f919bbb9..70f47f78 100644
--- a/animation_animall.py
+++ b/animation_animall.py
@@ -569,7 +569,7 @@ def animall_update_handler(scene):
     '''Force data refresh on frame change.
     To be removed when T68666 is fixed, probably.'''
     for obj in scene.objects:
-        if obj.data is not None:
+        if obj.data is not None and obj.data.animation_data is not None:
             obj.update_tag(refresh={'DATA'})



More information about the Bf-extensions-cvs mailing list