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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-07-28 13:21:30 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-07-28 13:39:52 +0300
commitec80f1d37658fb0f627a3990f7ecf739b9be075d (patch)
treee0111f653e46b383175010f46a55d3e3a1e4f2ac /source/blender/blenkernel/intern/object.c
parent19de9d1a9e605a0c3f2319fb1db18ffdee9bb1c7 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r--source/blender/blenkernel/intern/object.c2
1 files changed, 2 insertions, 0 deletions
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)
{