diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-15 14:21:17 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-15 14:21:17 +0300 |
commit | d6e96bd6059d264957a67f24fcce98b8de9c8d40 (patch) | |
tree | d77809b5b9d5071ec3578e944a3759f2f0f448eb /source/blender/src/header_info.c | |
parent | e50112d441aca2d43387f20cb54bd6ee02781fb0 (diff) |
Bugfix #5232
An oldie; if you have a referenced (lib-linked) scene, and copy that one
(use "Full Copy"), the objects in that scene disappeared after saving.
Caused by manual increasing id->us, instead of using the library.c call
id_us_plus(). The latter keeps track of linking issues.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r-- | source/blender/src/header_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index 8eed1eb48ad..d062423e7e1 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -320,7 +320,7 @@ Scene *copy_scene(Scene *sce, int level) obase= sce->base.first; base= scen->base.first; while(base) { - base->object->id.us++; + id_us_plus(&base->object->id); if(obase==sce->basact) scen->basact= base; obase= obase->next; @@ -340,7 +340,7 @@ Scene *copy_scene(Scene *sce, int level) /* level 2 */ if(level>=2) { if(scen->world) { - scen->world->id.us--; + id_us_plus(&scen->world->id); scen->world= copy_world(scen->world); } single_obdata_users(0); |