diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-02 00:24:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-02 00:24:59 +0300 |
commit | bc36e39c233d61b3dbefedb7fa4f98228d225a94 (patch) | |
tree | 2c24e3aa57f29d486c17972101668292594ab3d7 | |
parent | 1c2bb084ac2646fdc191549e073cbd59aa11cc9b (diff) |
fix issue #2 raised by report: [#25894] Problems with properties across files
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 0d3fb7107f0..625410324a3 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -59,11 +59,9 @@ #include "BLI_pbvh.h" #include "BLI_utildefines.h" - - #include "BKE_main.h" #include "BKE_global.h" - +#include "BKE_idprop.h" #include "BKE_armature.h" #include "BKE_action.h" #include "BKE_bullet.h" @@ -1605,7 +1603,17 @@ void object_make_proxy(Object *ob, Object *target, Object *gob) armature_set_id_extern(ob); } - + + /* copy IDProperties */ + if(ob->id.properties) { + IDP_FreeProperty(ob->id.properties); + MEM_freeN(ob->id.properties); + ob->id.properties= NULL; + } + if(target->id.properties) { + ob->id.properties= IDP_CopyProperty(target->id.properties); + } + /* copy drawtype info */ ob->dt= target->dt; } |