Fix T69037: Automerge is greyed-out in popover

Split "use_mesh_automerge_and_split" and "double_threshold" into their
own column so .active doesn't have to be applied for the entire layout.

Reviewers: billreynish, mano-wii

Differential Revision: https://developer.blender.org/D5618
This commit is contained in:
Anthony Eriksson 2019-09-13 09:27:59 -03:00 committed by mano-wii
parent fcf94c772f
commit 77399283d4
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by issue #69037, Automerge is greyed-out in popover
1 changed files with 4 additions and 3 deletions

View File

@ -219,9 +219,10 @@ class VIEW3D_PT_tools_meshedit_options_automerge(View3DPanel, Panel):
layout.use_property_split = True
layout.use_property_decorate = False
layout.active = tool_settings.use_mesh_automerge
layout.prop(tool_settings, "use_mesh_automerge_and_split", toggle=False)
layout.prop(tool_settings, "double_threshold", text="Threshold")
col = layout.column(align=True)
col.active = tool_settings.use_mesh_automerge
col.prop(tool_settings, "use_mesh_automerge_and_split", toggle=False)
col.prop(tool_settings, "double_threshold", text="Threshold")
# ********** default tools for editmode_curve ****************