Fix T46569: Crash w/ mask & locked-track enabled
This commit is contained in:
parent
e6c943c917
commit
9a6a3f5346
Notes:
blender-bot
2023-02-14 08:30:02 +01:00
Referenced by issue #46609, crash on selection of mask in motion tracking layout Referenced by issue #46569, Crash when switching to Mask mode with Locked track selected
|
@ -403,6 +403,10 @@ bool ED_mask_selected_minmax(const bContext *C, float min[2], float max[2])
|
|||
Mask *mask = CTX_data_edit_mask(C);
|
||||
MaskLayer *mask_layer;
|
||||
bool ok = false;
|
||||
|
||||
if (mask == NULL)
|
||||
return ok;
|
||||
|
||||
INIT_MINMAX2(min, max);
|
||||
for (mask_layer = mask->masklayers.first;
|
||||
mask_layer != NULL;
|
||||
|
|
Loading…
Reference in New Issue