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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/texture.c')
-rw-r--r--source/blender/blenkernel/intern/texture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c
index a5412c6269e..672fd06f95d 100644
--- a/source/blender/blenkernel/intern/texture.c
+++ b/source/blender/blenkernel/intern/texture.c
@@ -843,13 +843,13 @@ void make_local_texture(Tex *tex)
if(tex->ima) {
tex->ima->id.lib= NULL;
tex->ima->id.flag= LIB_LOCAL;
- new_id(NULL, (ID *)tex->ima, NULL);
+ new_id(&bmain->image, (ID *)tex->ima, NULL);
}
if(tex->id.us==1) {
tex->id.lib= NULL;
tex->id.flag= LIB_LOCAL;
- new_id(NULL, (ID *)tex, NULL);
+ new_id(&bmain->tex, (ID *)tex, NULL);
return;
}
@@ -906,7 +906,7 @@ void make_local_texture(Tex *tex)
if(local && lib==0) {
tex->id.lib= NULL;
tex->id.flag= LIB_LOCAL;
- new_id(NULL, (ID *)tex, NULL);
+ new_id(&bmain->tex, (ID *)tex, NULL);
}
else if(local && lib) {
texn= copy_texture(tex);