[Bf-blender-cvs] [2e1ac7e2df8] blender2.8: Static Overrides: disable animated check for now.

Bastien Montagne noreply at git.blender.org
Mon Apr 23 16:12:25 CEST 2018


Commit: 2e1ac7e2df812bf3398e6910540da2e3523da73a
Author: Bastien Montagne
Date:   Mon Apr 23 16:08:45 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2e1ac7e2df812bf3398e6910540da2e3523da73a

Static Overrides: disable animated check for now.

This is actually rather slow process, commeting it out gives us another
10% speedup... On a non-animated char! Don't even want to know how much
this would have costed on a rig with hundreds of fcurves!

And checking this is not really critical for us anyway, once animated
you do not really care whether props are also statically overridden or
not.

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

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 59d0095e3fb..4806bd147fc 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -7506,11 +7506,13 @@ bool RNA_struct_override_matches(
 			continue;
 		}
 
+#if 0  /* This actually makes things slower, since it has to check for animation paths etc! */
 		if (RNA_property_animated(ptr_local, prop_local)) {
 			/* We cannot do anything here really, animation is some kind of dynamic overrides that has
 			 * precedence over static one... */
 			continue;
 		}
+#endif
 
 #define RNA_PATH_BUFFSIZE 8192
 #define RNA_PATH_PRINTF(_str, ...) \



More information about the Bf-blender-cvs mailing list