[Bf-blender-cvs] [560097b4992] id_override_static: Auto-override detection: ignore animated properties.

Bastien Montagne noreply at git.blender.org
Fri Nov 10 17:21:58 CET 2017


Commit: 560097b499224f26a67b9e1241f6c091f20be8c1
Author: Bastien Montagne
Date:   Fri Nov 10 17:09:08 2017 +0100
Branches: id_override_static
https://developer.blender.org/rB560097b499224f26a67b9e1241f6c091f20be8c1

Auto-override detection: ignore animated properties.

Animation is by definition another kind of (dynamic) override of properties,
which supersedes static override.

Note that this could be debated in some corner cases ('differential'
animation, like dloc/drot/dscale), but think we can ignore that for now,
and expect user to handle those manually when needed.

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

M	source/blender/makesrna/intern/rna_access.c

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

diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 588b5bedf3c..f7a6e3cc04c 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -8205,6 +8205,9 @@ bool RNA_struct_auto_override(PointerRNA *local, PointerRNA *reference, IDOverri
 		if (!(prop->flag & PROP_OVERRIDABLE)) {
 			continue;
 		}
+		if (RNA_property_animated(local, prop)) {
+			continue;
+		}
 
 		/* XXX TODO this will have to be refined to handle collections insertions, and array items */
 		char *rna_path;



More information about the Bf-blender-cvs mailing list