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.
This commit is contained in:
Damien Picard 2019-09-06 09:47:27 +02:00
parent b0ebe5e18f
commit c3348263dc
Notes: blender-bot 2023-02-14 00:56:23 +01:00
Referenced by issue blender/blender#69509, Quick Smoke is Broken
1 changed files with 1 additions and 1 deletions

View File

@ -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'})