Fix T86895: bpy.ops.curve.select_all(action='INVERT')
The operator should not assume v3d is valid.
This commit is contained in:
parent
c06042afc6
commit
93bedcb96a
Notes:
blender-bot
2024-03-22 15:57:27 +01:00
Referenced by issue #86895, Crash! (2.83—2.93): bpy.ops.curve.select_all(action='INVERT')
|
@ -578,8 +578,8 @@ static int de_select_all_exec(bContext *C, wmOperator *op)
|
|||
changed = ED_curve_deselect_all(cu->editnurb);
|
||||
break;
|
||||
case SEL_INVERT:
|
||||
changed = ED_curve_select_swap(cu->editnurb,
|
||||
v3d->overlay.handle_display == CURVE_HANDLE_NONE);
|
||||
changed = ED_curve_select_swap(
|
||||
cu->editnurb, (v3d && (v3d->overlay.handle_display == CURVE_HANDLE_NONE)));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue