[Bf-blender-cvs] [b5cfb23fa71] master: VSE UI: Text panel adjustments
Peter Fog
noreply at git.blender.org
Mon Jun 1 05:46:59 CEST 2020
Commit: b5cfb23fa719816a8f712b2d18ac3be1e037a1ac
Author: Peter Fog
Date: Mon Jun 1 05:38:48 2020 +0200
Branches: master
https://developer.blender.org/rBb5cfb23fa719816a8f712b2d18ac3be1e037a1ac
VSE UI: Text panel adjustments
This patch adjusts a number of text panel elements:
- The text entry widget has become larger in order to distinguish it from the strip name.
- Wrap has been moved up under the text, since this doesn't relate to bounding box.
- Alignment X/Y has been renamed to Anchor X/Y, since this is the achor point of the text point, and not the Alignment of the text.
- Offset and Crop was completely missing from the Text strip panel, these has been added.
Reviewed By: billreynish
Differential Revision: https://developer.blender.org/D7869
===================================================================
M release/scripts/startup/bl_ui/space_sequencer.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 2de047730b8..9c20a55c294 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -1152,9 +1152,13 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
elif strip_type == 'TEXT':
layout = self.layout
- layout.use_property_split = False
- layout.prop(strip, "text", text="")
- layout.use_property_split = True
+ col = layout.column()
+ col.scale_x = 1.3
+ col.scale_y = 1.3
+ col.use_property_split = False
+ col.prop(strip, "text", text="")
+ col.use_property_split = True
+ layout.prop(strip, "wrap_width", text="Wrap Width")
col = layout.column(align=True)
if strip_type == 'SPEED':
@@ -1191,9 +1195,8 @@ class SEQUENCER_PT_effect_text_layout(SequencerButtonsPanel, Panel):
layout.use_property_split = True
col = layout.column()
col.prop(strip, "location", text="Location")
- col.prop(strip, "align_x", text="Alignment X")
+ col.prop(strip, "align_x", text="Anchor X")
col.prop(strip, "align_y", text="Y")
- col.prop(strip, "wrap_width", text="Wrap Width")
class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel):
@@ -1683,7 +1686,7 @@ class SEQUENCER_PT_adjust_transform(SequencerButtonsPanel, Panel):
return strip.type in {
'MOVIE', 'IMAGE', 'SCENE', 'MOVIECLIP', 'MASK',
- 'META', 'ADD', 'SUBTRACT', 'ALPHA_OVER',
+ 'META', 'ADD', 'SUBTRACT', 'ALPHA_OVER', 'TEXT',
'ALPHA_UNDER', 'CROSS', 'GAMMA_CROSS', 'MULTIPLY',
'OVER_DROP', 'WIPE', 'GLOW', 'TRANSFORM', 'COLOR',
'MULTICAM', 'SPEED', 'ADJUSTMENT', 'COLORMIX'
More information about the Bf-blender-cvs
mailing list