Fix T100590: Crash when changing active image texture node
Mistake in own rBc76d7f7bde35. Happened when no image was set in the Image Editor already (which is now checked for). Maniphest Tasks: T100590 Differential Revision: https://developer.blender.org/D15761
This commit is contained in:
parent
10a4726a5b
commit
62bd007646
Notes:
blender-bot
2023-02-14 08:49:53 +01:00
Referenced by issue #100609, Crash when dragging in an image into the shader editor Referenced by issue #100590, Crash when changing active image texture node
|
@ -745,7 +745,7 @@ void ED_node_set_active(
|
|||
if (sima->pin) {
|
||||
continue;
|
||||
}
|
||||
if (ELEM(sima->image->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) {
|
||||
if (sima->image && ELEM(sima->image->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) {
|
||||
continue;
|
||||
}
|
||||
ED_space_image_set(bmain, sima, image, true);
|
||||
|
|
Loading…
Reference in New Issue