From c3348263dc26d6272db88ed94b73caa3ddb3a3fd Mon Sep 17 00:00:00 2001
From: Damien Picard <dam.pic@free.fr>
Date: Fri, 6 Sep 2019 09:47:27 +0200
Subject: [PATCH] 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.
---
 animation_animall.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/animation_animall.py b/animation_animall.py
index f919bbb95..70f47f785 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'})
 
 
-- 
GitLab