Fix T41955: lamp error: double update for all lamps

This is actually also safe for 2.72 :)
This commit is contained in:
Sergey Sharybin 2014-09-29 15:05:02 +06:00
parent 8a03a51c33
commit bdb0b70319
Notes: blender-bot 2023-02-14 10:02:31 +01:00
Referenced by issue #41955, lamp error:double update for all lamps
1 changed files with 1 additions and 2 deletions

View File

@ -135,8 +135,7 @@ Lamp *localize_lamp(Lamp *la)
Lamp *lan;
int a;
lan = BKE_libblock_copy(&la->id);
BLI_remlink(&G.main->lamp, lan);
lan = BKE_libblock_copy_nolib(&la->id, false);
for (a = 0; a < MAX_MTEX; a++) {
if (lan->mtex[a]) {