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:
Philipp Oeser 2019-05-03 11:18:32 +02:00
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.
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}