diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-10 18:44:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-10 18:44:42 +0300 |
commit | 83e5edf5cb8fdaa0b08743756665f8a0ab8fc066 (patch) | |
tree | 7df25900405ca17ac49a608b1270e04a8fc9eb42 | |
parent | 3b03984294176abfe1205edc25ee05dc6211055f (diff) |
linked scenes were not animating.
this needs fixing properly but for now we need linked data to be animated by its linked actions.
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index ce06bc8f6c4..6932d775da7 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1060,7 +1060,9 @@ int RNA_property_editable(PointerRNA *ptr, PropertyRNA *prop) 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 @@ int RNA_property_editable_index(PointerRNA *ptr, PropertyRNA *prop, int index) 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) |