Fix T72445: Cycles crash with Displacement maps in OSL

The UDIM commit accidentally removed a check that skipped Image updates
if the image was managed by OSL.
This commit is contained in:
Lukas Stockner 2019-12-20 20:28:16 +01:00
parent 9a8f840c31
commit e9093a6e49

@ -2130,7 +2130,9 @@ void MeshManager::device_update_displacement_images(Device *device,
ImageSlotTextureNode *image_node = static_cast<ImageSlotTextureNode *>(node);
foreach (int slot, image_node->slots) {
bump_images.insert(slot);
if (slot != -1) {
bump_images.insert(slot);
}
}
}
}