From 0681f0d24034f387478aa1d5670792358339981f Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Wed, 20 Aug 2025 14:40:14 +0800 Subject: [PATCH] fix: optimize the ui layout for BME boolean property. --- bbp_ng/OP_ADDS_bme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbp_ng/OP_ADDS_bme.py b/bbp_ng/OP_ADDS_bme.py index dc65e06..da71874 100644 --- a/bbp_ng/OP_ADDS_bme.py +++ b/bbp_ng/OP_ADDS_bme.py @@ -250,7 +250,7 @@ class BBP_OT_add_bme_struct(bpy.types.Operator): case UTIL_bme.PrototypeShowcaseCfgsTypes.Float: box_layout.prop(op_cfgs_visitor[cfg_index], 'prop_float', text='') case UTIL_bme.PrototypeShowcaseCfgsTypes.Boolean: - box_layout.prop(op_cfgs_visitor[cfg_index], 'prop_bool', text='') + box_layout.prop(op_cfgs_visitor[cfg_index], 'prop_bool', toggle=1, text='Yes', text_ctxt='BBP_OT_add_bme_struct/draw') case UTIL_bme.PrototypeShowcaseCfgsTypes.Face: # face will show a special layout (grid view) grids = box_layout.grid_flow(