[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56068] trunk/blender/source/blender/ makesrna/intern/rna_access.c: Touch properties when clearing/ adding to a collection.
Sergey Sharybin
sergey.vfx at gmail.com
Mon Apr 15 18:24:35 CEST 2013
Revision: 56068
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56068
Author: nazgul
Date: 2013-04-15 16:24:35 +0000 (Mon, 15 Apr 2013)
Log Message:
-----------
Touch properties when clearing/adding to a collection.
Fixes an issue when adding several movie strips fails
second time in sequencer.
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 2013-04-15 16:18:35 UTC (rev 56067)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c 2013-04-15 16:24:35 UTC (rev 56068)
@@ -2871,6 +2871,7 @@
IDP_AppendArray(idprop, item);
/* IDP_FreeProperty(item); *//* IDP_AppendArray does a shallow copy (memcpy), only free memory */
MEM_freeN(item);
+ rna_idproperty_touch(idprop);
}
else if (prop->flag & PROP_IDPROPERTY) {
IDProperty *group, *item;
@@ -3001,8 +3002,10 @@
BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
- if ((idprop = rna_idproperty_check(&prop, ptr)))
+ if ((idprop = rna_idproperty_check(&prop, ptr))) {
IDP_ResizeIDPArray(idprop, 0);
+ rna_idproperty_touch(idprop);
+ }
}
int RNA_property_collection_lookup_index(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *t_ptr)
More information about the Bf-blender-cvs
mailing list