Fix T41955: lamp error: double update for all lamps
This is actually also safe for 2.72 :)
This commit is contained in:
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
|
@ -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]) {
|
||||
|
|
Loading…
Reference in New Issue