Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-01 19:44:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-01 20:26:07 +0300
commitd18cd768bb0cc7dd9eba36e3f0c4e2189853c08f (patch)
tree2ab5904859fe19fa3ffb401b3f65db3b481a4f75 /release/scripts/startup/bl_ui/properties_data_lattice.py
parentbfe1d0e0dc6281d33448c3d4ddfa2e231bbc5566 (diff)
UI: use single column properties for object data
patch by @billreynish w/ minor edits
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_lattice.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_lattice.py31
1 files changed, 19 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_lattice.py b/release/scripts/startup/bl_ui/properties_data_lattice.py
index c309642e8bc..b584e433cb9 100644
--- a/release/scripts/startup/bl_ui/properties_data_lattice.py
+++ b/release/scripts/startup/bl_ui/properties_data_lattice.py
@@ -57,24 +57,31 @@ class DATA_PT_lattice(DataButtonsPanel, Panel):
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
lat = context.lattice
- row = layout.row()
- row.prop(lat, "points_u")
- row.prop(lat, "interpolation_type_u", text="")
+ col = layout.column()
- row = layout.row()
- row.prop(lat, "points_v")
- row.prop(lat, "interpolation_type_v", text="")
+ sub = col.column(align=True)
+ sub.prop(lat, "points_u", text="Resolution U")
+ sub.prop(lat, "points_v", text="V")
+ sub.prop(lat, "points_w", text="W")
- row = layout.row()
- row.prop(lat, "points_w")
- row.prop(lat, "interpolation_type_w", text="")
+ col.separator()
- row = layout.row()
- row.prop(lat, "use_outside")
- row.prop_search(lat, "vertex_group", context.object, "vertex_groups", text="")
+ sub = col.column(align=True)
+ sub.prop(lat, "interpolation_type_u", text="Interpolation U")
+ sub.prop(lat, "interpolation_type_v", text="V")
+ sub.prop(lat, "interpolation_type_w", text="W")
+
+ col.separator()
+
+ col.prop(lat, "use_outside")
+
+ col.separator()
+
+ col.prop_search(lat, "vertex_group", context.object, "vertex_groups")
class DATA_PT_custom_props_lattice(DataButtonsPanel, PropertyPanel, Panel):