[Bf-blender-cvs] [1c81374c372] master: Fix T73062: Custom properties misaligned
William Reynish
noreply at git.blender.org
Mon Jan 13 09:38:51 CET 2020
Commit: 1c81374c3728a0c3843846c0996340ab3bc258dd
Author: William Reynish
Date: Mon Jan 13 09:38:49 2020 +0100
Branches: master
https://developer.blender.org/rB1c81374c3728a0c3843846c0996340ab3bc258dd
Fix T73062: Custom properties misaligned
The UI layout here was mistakingly made left aligned and very hard to read when viewed inside the Sidebar.
===================================================================
M release/scripts/modules/rna_prop_ui.py
===================================================================
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py
index 202fd865723..8dda8c90f85 100644
--- a/release/scripts/modules/rna_prop_ui.py
+++ b/release/scripts/modules/rna_prop_ui.py
@@ -277,14 +277,15 @@ def draw(layout, context, context_member, property_type, use_edit=True):
else:
val_draw = val
- row = flow.row(align=True)
+ row = layout.row(align=True)
box = row.box()
if use_edit:
split = box.split(factor=0.75)
row = split.row(align=True)
else:
- row = box.row(align=True)
+ split = box.split(factor=1.00)
+ row = split.row(align=True)
row.alignment = 'RIGHT'
More information about the Bf-blender-cvs
mailing list