[Bf-blender-cvs] [b583894] master: Fix another part of the issue T41604

Sergey Sharybin noreply at git.blender.org
Thu Aug 28 22:53:44 CEST 2014


Commit: b583894592e22468ef25cf2979577f6ce7fcf777
Author: Sergey Sharybin
Date:   Fri Aug 29 02:52:36 2014 +0600
Branches: master
https://developer.blender.org/rBb583894592e22468ef25cf2979577f6ce7fcf777

Fix another part of the issue T41604

Missed that part of the report somehow, thought it's all about world..

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

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

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

diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c
index 47b0861..4d5c7dc 100644
--- a/source/blender/blenkernel/intern/texture.c
+++ b/source/blender/blenkernel/intern/texture.c
@@ -852,8 +852,7 @@ Tex *localize_texture(Tex *tex)
 {
 	Tex *texn;
 	
-	texn = BKE_libblock_copy(&tex->id);
-	BLI_remlink(&G.main->tex, texn);
+	texn = BKE_libblock_copy_nolib(&tex->id, false);
 	
 	/* image texture: BKE_texture_free also doesn't decrease */




More information about the Bf-blender-cvs mailing list