[Bf-blender-cvs] [ec80f1d3765] master: Cleanup: Commented `BKE_object_moves_in_time()` does not consider physics

Sybren A. Stüvel noreply at git.blender.org
Tue Jul 28 12:40:57 CEST 2020


Commit: ec80f1d37658fb0f627a3990f7ecf739b9be075d
Author: Sybren A. Stüvel
Date:   Tue Jul 28 12:21:30 2020 +0200
Branches: master
https://developer.blender.org/rBec80f1d37658fb0f627a3990f7ecf739b9be075d

Cleanup: Commented `BKE_object_moves_in_time()` does not consider physics

When an object is moved only by the rigid body physics system, the
function `BKE_object_moves_in_time()` will incorrectly return `false`.
This commit adds a comment to make this behaviour more explicit.

No functional changes.

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

M	source/blender/blenkernel/intern/object.c

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

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 28f7205f534..27f1cc2b657 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -3973,6 +3973,8 @@ int BKE_object_is_modified(Scene *scene, Object *ob)
  * but it's currently an acceptable tradeoff between complexity and check
  * speed. In combination with checks of modifier stack and real life usage
  * percentage of false-positives shouldn't be that high.
+ *
+ * NOTE: This function does not consider physics systems.
  */
 bool BKE_object_moves_in_time(const Object *object, bool recurse_parent)
 {



More information about the Bf-blender-cvs mailing list