Tag all localized ID types as such
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Nov 2018 15:36:35 +0000 (16:36 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Nov 2018 15:36:35 +0000 (16:36 +0100)
source/blender/blenkernel/intern/lamp.c
source/blender/blenkernel/intern/texture.c
source/blender/blenkernel/intern/world.c

index 1ca794b8a4ab18c2fcf000b8066b5f916e95e1ac..a2571c8cee5e452cae1b8da5dac2fdd1e7a6bc72 100644 (file)
@@ -158,6 +158,8 @@ Lamp *BKE_lamp_localize(Lamp *la)
 
        lan->preview = NULL;
 
+       lan->id.tag |= LIB_TAG_LOCALIZED;
+
        return lan;
 }
 
index 2a7cf9aadb643bbf0f0560ec28b5907e01546683..5031b2de46222ffb87e2eb992fb13e34959cc1e1 100644 (file)
@@ -488,6 +488,8 @@ Tex *BKE_texture_localize(Tex *tex)
                texn->nodetree = ntreeLocalize(tex->nodetree);
        }
 
+       texn->id.tag |= LIB_TAG_LOCALIZED;
+
        return texn;
 }
 
index cb8103588a7c46f3b8dfdf36e9ce70d31565f4a3..f4c32987117f51bfcce5982e8f5ac38af32d1559 100644 (file)
@@ -164,6 +164,8 @@ World *BKE_world_localize(World *wrld)
        BLI_listbase_clear(&wrldn->gpumaterial);
        BLI_listbase_clear((ListBase *)&wrldn->drawdata);
 
+       wrldn->id.tag |= LIB_TAG_LOCALIZED;
+
        return wrldn;
 }