[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25868] trunk/blender/source/blender/ makesrna/intern/rna_access.c: linked scenes were not animating.

Campbell Barton ideasman42 at gmail.com
Sun Jan 10 16:44:42 CET 2010


Revision: 25868
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25868
Author:   campbellbarton
Date:     2010-01-10 16:44:42 +0100 (Sun, 10 Jan 2010)

Log Message:
-----------
linked scenes were not animating.
this needs fixing properly but for now we need linked data to be animated by its linked actions.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_access.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c	2010-01-10 15:28:24 UTC (rev 25867)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c	2010-01-10 15:44:42 UTC (rev 25868)
@@ -1060,7 +1060,9 @@
 	
 	id= ptr->id.data;
 
-	return (flag & PROP_EDITABLE) && (!id || !id->lib || (flag & PROP_LIB_EXCEPTION));
+	/* with this, libdata is not animated by its own library fcurves, FIXME */
+//	return (flag & PROP_EDITABLE) && (!id || !id->lib || (flag & PROP_LIB_EXCEPTION));
+	return (flag & PROP_EDITABLE) ? 1:0;
 }
 
 /* same as RNA_property_editable(), except this checks individual items in an array */
@@ -1079,8 +1081,9 @@
 		
 	flag= prop->itemeditable(ptr, index);
 	id= ptr->id.data;
-	
-	return (flag & PROP_EDITABLE) && (!id || !id->lib || (flag & PROP_LIB_EXCEPTION));
+	/* with this, libdata is not animated by its own library fcurves, FIXME */
+//	return (flag & PROP_EDITABLE) && (!id || !id->lib || (flag & PROP_LIB_EXCEPTION));
+	return (flag & PROP_EDITABLE) ? 1:0;
 }
 
 int RNA_property_animateable(PointerRNA *ptr, PropertyRNA *prop)





More information about the Bf-blender-cvs mailing list