Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/mball.c')
-rw-r--r--source/blender/blenkernel/intern/mball.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c
index 2c6a3b80d94..b9ca6dda4cf 100644
--- a/source/blender/blenkernel/intern/mball.c
+++ b/source/blender/blenkernel/intern/mball.c
@@ -156,7 +156,9 @@ void make_local_mball(MetaBall *mb)
if(mb->id.lib==NULL) return;
if(mb->id.us==1) {
- id_clear_lib_data(&bmain->mball, (ID *)mb);
+ mb->id.lib= NULL;
+ mb->id.flag= LIB_LOCAL;
+ new_id(&bmain->mball, (ID *)mb, NULL);
extern_local_mball(mb);
return;
@@ -170,7 +172,10 @@ void make_local_mball(MetaBall *mb)
}
if(local && lib==0) {
- id_clear_lib_data(&bmain->mball, (ID *)mb);
+ mb->id.lib= NULL;
+ mb->id.flag= LIB_LOCAL;
+
+ new_id(&bmain->mball, (ID *)mb, NULL);
extern_local_mball(mb);
}
else if(local && lib) {