fix image_changed() doing unneccessary texture updates when texture wasnt
using an image Reviewers: brecht Differential Revision: https://developer.blender.org/D4789
This commit is contained in:
parent
a460e97212
commit
21f8e75ddb
Notes:
blender-bot
2023-02-14 06:17:14 +01:00
Referenced by issue #64284, Mirroed Collection Intances have flipped normals/face orientation.
|
@ -265,7 +265,7 @@ static void image_changed(Main *bmain, Image *ima)
|
|||
|
||||
/* textures */
|
||||
for (tex = bmain->textures.first; tex; tex = tex->id.next) {
|
||||
if (tex->ima == ima) {
|
||||
if (tex->type == TEX_IMAGE && tex->ima == ima) {
|
||||
texture_changed(bmain, tex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue