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/world.c')
-rw-r--r--source/blender/blenkernel/intern/world.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/world.c b/source/blender/blenkernel/intern/world.c
index 150bf7157d9..5c705c5fe94 100644
--- a/source/blender/blenkernel/intern/world.c
+++ b/source/blender/blenkernel/intern/world.c
@@ -160,7 +160,9 @@ void make_local_world(World *wrld)
if(wrld->id.lib==NULL) return;
if(wrld->id.us==1) {
- id_clear_lib_data(&bmain->world, (ID *)wrld);
+ wrld->id.lib= NULL;
+ wrld->id.flag= LIB_LOCAL;
+ new_id(NULL, (ID *)wrld, NULL);
return;
}
@@ -172,7 +174,9 @@ void make_local_world(World *wrld)
}
if(local && lib==0) {
- id_clear_lib_data(&bmain->world, (ID *)wrld);
+ wrld->id.lib= NULL;
+ wrld->id.flag= LIB_LOCAL;
+ new_id(NULL, (ID *)wrld, NULL);
}
else if(local && lib) {
World *wrldn= copy_world(wrld);