Fix T41604: Double updates of world and material texture settings

The issue was caused by the world localization setting the ID_WORLD
type update tag. Now using a function which doesn't pollute the library
and which doesn't set update flags.
This commit is contained in:
Sergey Sharybin 2014-08-28 15:45:05 +06:00
parent d84c15696b
commit 3a200d66ae
Notes: blender-bot 2023-06-07 10:31:13 +02:00
Referenced by issue #41604, Double updates of world and material texture settings
1 changed files with 1 additions and 2 deletions

View File

@ -142,8 +142,7 @@ World *localize_world(World *wrld)
World *wrldn;
int a;
wrldn = BKE_libblock_copy(&wrld->id);
BLI_remlink(&G.main->world, wrldn);
wrldn = BKE_libblock_copy_nolib(&wrld->id, false);
for (a = 0; a < MAX_MTEX; a++) {
if (wrld->mtex[a]) {