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:
authorSebastian Koenig <sebastiankoenig@posteo.de>2018-09-27 13:44:51 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-27 15:15:10 +0300
commit1472550ba195a3278ee3eb2977515c2c3b62c9ce (patch)
tree7f92f06d66d52977ca9b79f7ed4428dbd60005eb /release/scripts/startup/bl_ui/properties_mask_common.py
parente9a38c50d9af6cbb96b235b725427b262ce56c5d (diff)
UI: new clip editor panels and headers layout.
* Panels now use single column layout. * Footage Info was moved into Footage Settings. * Display settings are now in a popover in the header. * Graph view shows tracking controls in the header center. Differential Revision: https://developer.blender.org/D3643
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_mask_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_mask_common.py27
1 files changed, 17 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/properties_mask_common.py b/release/scripts/startup/bl_ui/properties_mask_common.py
index 8f19d36f6b2..bd657280e4e 100644
--- a/release/scripts/startup/bl_ui/properties_mask_common.py
+++ b/release/scripts/startup/bl_ui/properties_mask_common.py
@@ -55,6 +55,8 @@ class MASK_PT_mask:
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
+ layout.use_property_decorate = False
sc = context.space_data
mask = sc.mask
@@ -77,6 +79,8 @@ class MASK_PT_layers:
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
+ layout.use_property_decorate = False
sc = context.space_data
mask = sc.mask
@@ -107,9 +111,9 @@ class MASK_PT_layers:
layout.prop(active_layer, "blend")
layout.prop(active_layer, "falloff")
- row = layout.row(align=True)
- row.prop(active_layer, "use_fill_overlap", text="Overlap")
- row.prop(active_layer, "use_fill_holes", text="Holes")
+ col = layout.column()
+ col.prop(active_layer, "use_fill_overlap", text="Overlap")
+ col.prop(active_layer, "use_fill_holes", text="Holes")
class MASK_PT_spline:
@@ -130,6 +134,8 @@ class MASK_PT_spline:
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
+ layout.use_property_decorate = False
sc = context.space_data
mask = sc.mask
@@ -137,11 +143,10 @@ class MASK_PT_spline:
col = layout.column()
col.prop(spline, "offset_mode")
- col.prop(spline, "weight_interpolation")
+ col.prop(spline, "weight_interpolation", text="Interpolation")
- row = col.row()
- row.prop(spline, "use_cyclic")
- row.prop(spline, "use_fill")
+ col.prop(spline, "use_cyclic")
+ col.prop(spline, "use_fill")
col.prop(spline, "use_self_intersection_check")
@@ -166,6 +171,8 @@ class MASK_PT_point:
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
+ layout.use_property_decorate = False
sc = context.space_data
mask = sc.mask
@@ -188,17 +195,17 @@ class MASK_PT_point:
row.prop(parent, "type", expand=True)
col.prop_search(parent, "parent", tracking,
- "objects", icon='OBJECT_DATA', text="Object:")
+ "objects", icon='OBJECT_DATA', text="Object")
tracks_list = "tracks" if parent.type == 'POINT_TRACK' else "plane_tracks"
if parent.parent in tracking.objects:
object = tracking.objects[parent.parent]
col.prop_search(parent, "sub_parent", object,
- tracks_list, icon='ANIM_DATA', text="Track:")
+ tracks_list, icon='ANIM_DATA', text="Track")
else:
col.prop_search(parent, "sub_parent", tracking,
- tracks_list, icon='ANIM_DATA', text="Track:")
+ tracks_list, icon='ANIM_DATA', text="Track")
class MASK_PT_display: