[Bf-blender-cvs] [bdb0b70] blender-v2.72-release: Fix T41955: lamp error: double update for all lamps

Sergey Sharybin noreply at git.blender.org
Fri Oct 3 15:24:29 CEST 2014


Commit: bdb0b70319cb3860b259049b1be8d4078e21653c
Author: Sergey Sharybin
Date:   Mon Sep 29 15:05:02 2014 +0600
Branches: blender-v2.72-release
https://developer.blender.org/rBbdb0b70319cb3860b259049b1be8d4078e21653c

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