Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-09-29 13:05:02 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-03 17:09:27 +0400
commitbdb0b70319cb3860b259049b1be8d4078e21653c (patch)
treecd619c6ae5654b4455198e9f8587143f351bec01 /source
parent8a03a51c330ad90d8efb9b1b5e44863aaf0caf0e (diff)
Fix T41955: lamp error: double update for all lamps
This is actually also safe for 2.72 :)
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/lamp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/lamp.c b/source/blender/blenkernel/intern/lamp.c
index 749e915e5ca..4a413850ec0 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]) {