From 98481929df34a430d7ae7d9cfe2dcdd9449afb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Br=C3=BCckner?= Date: Fri, 19 Feb 2021 20:59:54 +0100 Subject: [PATCH] Fix drawing of bool properties in UI (#1689) --- blender/arm/props_properties.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blender/arm/props_properties.py b/blender/arm/props_properties.py index 1379813a..510e10eb 100644 --- a/blender/arm/props_properties.py +++ b/blender/arm/props_properties.py @@ -18,11 +18,11 @@ class ArmPropertyListItem(bpy.types.PropertyGroup): class ARM_UL_PropertyList(bpy.types.UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): + layout.use_property_split = False # Make sure your code supports all 3 layout types if self.layout_type in {'DEFAULT', 'COMPACT'}: - row = layout.row() - row.prop(item, "name_prop", text="", emboss=False, icon="OBJECT_DATAMODE") - row.prop(item, item.type_prop + "_prop", text="", emboss=(item.type_prop == 'boolean')) + layout.prop(item, "name_prop", text="", emboss=False, icon="OBJECT_DATAMODE") + layout.prop(item, item.type_prop + "_prop", text="", emboss=(item.type_prop == 'boolean')) elif self.layout_type in {'GRID'}: layout.alignment = 'CENTER' layout.label(text="", icon="OBJECT_DATAMODE") @@ -155,4 +155,4 @@ def unregister(): bpy.utils.unregister_class(ARM_UL_PropertyList) bpy.utils.unregister_class(ArmPropertyListNewItem) bpy.utils.unregister_class(ArmPropertyListDeleteItem) - bpy.utils.unregister_class(ArmPropertyListMoveItem) \ No newline at end of file + bpy.utils.unregister_class(ArmPropertyListMoveItem)