Fix #119816: New curves draw tool options missing in sidebar

This commit is contained in:
Hans Goudey 2024-03-23 10:51:48 -04:00
parent 374b80b84a
commit 73e7023c71

@ -1132,7 +1132,7 @@ class _defs_edit_mesh:
)
def curve_draw_settings(context, layout, _tool, *, extra=False):
def curve_draw_settings(context, layout, tool, *, extra=False):
# Tool settings initialize operator options.
tool_settings = context.tool_settings
cps = tool_settings.curve_paint_settings
@ -1187,6 +1187,11 @@ def curve_draw_settings(context, layout, _tool, *, extra=False):
colsub = layout.column(align=True)
colsub.prop(cps, "surface_plane")
props = tool.operator_properties("curves.draw")
col = layout.column(align=True)
col.prop(props, "is_curve_2d", text="Curve 2D")
col.prop(props, "bezier_as_nurbs", text="As NURBS")
class _defs_edit_curve:
@ -1287,12 +1292,6 @@ class _defs_edit_curves:
def curve_draw(context, layout, tool, *, extra=False):
curve_draw_settings(context, layout, tool, extra=extra)
if extra:
props = tool.operator_properties("curves.draw")
col = layout.column(align=True)
col.prop(props, "is_curve_2d", text="Curve 2D")
col.prop(props, "bezier_as_nurbs", text="As NURBS")
return dict(
idname="builtin.draw",
label="Draw",