forked from bartvdbraak/blender
Fix T41920: Changing Use Alpha settings doesn't refresh viewport properly
This commit is contained in:
parent
a654512356
commit
502f6d538d
@ -176,6 +176,10 @@ int ImageManager::add_image(const string& filename, void *builtin_data, bool ani
|
|||||||
img->frame = frame;
|
img->frame = frame;
|
||||||
img->need_load = true;
|
img->need_load = true;
|
||||||
}
|
}
|
||||||
|
if(img->use_alpha != use_alpha) {
|
||||||
|
img->use_alpha = use_alpha;
|
||||||
|
img->need_load = true;
|
||||||
|
}
|
||||||
img->users++;
|
img->users++;
|
||||||
return slot;
|
return slot;
|
||||||
}
|
}
|
||||||
@ -219,6 +223,10 @@ int ImageManager::add_image(const string& filename, void *builtin_data, bool ani
|
|||||||
img->frame = frame;
|
img->frame = frame;
|
||||||
img->need_load = true;
|
img->need_load = true;
|
||||||
}
|
}
|
||||||
|
if(img->use_alpha != use_alpha) {
|
||||||
|
img->use_alpha = use_alpha;
|
||||||
|
img->need_load = true;
|
||||||
|
}
|
||||||
img->users++;
|
img->users++;
|
||||||
return slot+tex_image_byte_start;
|
return slot+tex_image_byte_start;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user