diff options
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index c1675faf053..1149d8eee25 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -141,7 +141,9 @@ void make_local_armature(bArmature *arm) if (arm->id.lib==NULL) return; if (arm->id.us==1) { - id_clear_lib_data(&bmain->armature, (ID *)arm); + arm->id.lib= NULL; + arm->id.flag= LIB_LOCAL; + new_id(&bmain->armature, (ID*)arm, NULL); return; } @@ -153,7 +155,9 @@ void make_local_armature(bArmature *arm) } if(local && lib==0) { - id_clear_lib_data(&bmain->armature, (ID *)arm); + arm->id.lib= NULL; + arm->id.flag= LIB_LOCAL; + new_id(&bmain->armature, (ID *)arm, NULL); } else if(local && lib) { bArmature *armn= copy_armature(arm); |