diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-11 09:34:28 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-11 09:34:28 +0300 |
commit | ec53e9fa697f39435480e174345368ee6b980120 (patch) | |
tree | b0842a37f8de19dd9e031124dde22c4311ae027b /intern/cycles | |
parent | ae683a22c64e8e184e8602a2c1df1adad2dc8e6d (diff) | |
parent | 81b797af669d21fc01855f94032faa6c92a4fd9b (diff) |
Merge branch 'blender-v3.2-release'
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/blender/util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/blender/util.h b/intern/cycles/blender/util.h index eead6cec08c..49cecb6d0f3 100644 --- a/intern/cycles/blender/util.h +++ b/intern/cycles/blender/util.h @@ -262,8 +262,11 @@ static inline bool BKE_object_is_modified(BL::Object &self, BL::Scene &scene, bo static inline bool BKE_object_is_deform_modified(BObjectInfo &self, BL::Scene &scene, bool preview) { if (!self.is_real_object_data()) { - return false; + /* Comes from geometry nodes, can't use heuristic to guess if it's animated. */ + return true; } + + /* Use heuristic to quickly check if object is potentially animated. */ return self.real_object.is_deform_modified(scene, (preview) ? (1 << 0) : (1 << 1)) ? true : false; } |