[Bf-blender-cvs] [9a19fd5] master: Fix T41955: lamp error: double update for all lamps

Sergey Sharybin noreply at git.blender.org
Mon Sep 29 11:05:33 CEST 2014


Commit: 9a19fd5811074d2abc6b11ec453ebc7677d3ada0
Author: Sergey Sharybin
Date:   Mon Sep 29 15:05:02 2014 +0600
Branches: master
https://developer.blender.org/rB9a19fd5811074d2abc6b11ec453ebc7677d3ada0

Fix T41955: lamp error: double update for all lamps

This is actually also safe for 2.72 :)

===================================================================

M	source/blender/blenkernel/intern/lamp.c

===================================================================

diff --git a/source/blender/blenkernel/intern/lamp.c b/source/blender/blenkernel/intern/lamp.c
index 749e915..4a41385 100644
--- a/source/blender/blenkernel/intern/lamp.c
+++ b/source/blender/blenkernel/intern/lamp.c
@@ -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]) {




More information about the Bf-blender-cvs mailing list