forked from bartvdbraak/blender
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:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user