Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Picard <dam.pic@free.fr>2019-09-06 10:47:27 +0300
committerDamien Picard <dam.pic@free.fr>2019-09-06 10:51:43 +0300
commitc3348263dc26d6272db88ed94b73caa3ddb3a3fd (patch)
treefb4d9f028eaea0523f038c4eade8c00014aae02d /animation_animall.py
parentb0ebe5e18f36360ffd25389fb93f8cde5f22295a (diff)
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.
Diffstat (limited to 'animation_animall.py')
-rw-r--r--animation_animall.py2
1 files changed, 1 insertions, 1 deletions
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'})