Fix: Text Location lost X/Y text
authorWilliam Reynish <billrey@me.com>
Thu, 27 Jun 2019 09:15:56 +0000 (11:15 +0200)
committerWilliam Reynish <billrey@me.com>
Thu, 27 Jun 2019 09:15:56 +0000 (11:15 +0200)
Use PROP_XYZ instead, and user Slider=True to make them display as sliders in the UI

release/scripts/startup/bl_ui/space_sequencer.py
source/blender/makesrna/intern/rna_sequencer.c

index 884d68ec8506d8d64e52510cea9cd93945828595..1f67c9b12cf706dc9a52b6f384da520e594d2fba 100644 (file)
@@ -1054,7 +1054,7 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
             col.prop(strip, "align_x", text="Horizontal")
             col.prop(strip, "align_y", text="Vertical")
             row = col.row(align=True)
-            row.prop(strip, "location", text="Location")
+            row.prop(strip, "location", text="Location", slider=True)
             col.prop(strip, "wrap_width")
 
             layout.operator("sequencer.export_subtitles", text="Export Subtitles", icon='EXPORT')
index bbf45695d30b521fd65cad092bcd1172b39ad2b4..241764ff9a6ff7fa48e249ada8eff1ade2bbf688 100644 (file)
@@ -2738,7 +2738,7 @@ static void rna_def_text(StructRNA *srna)
   RNA_def_property_update(
       prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update");
 
-  prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_FACTOR);
+  prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ);
   RNA_def_property_float_sdna(prop, NULL, "loc");
   RNA_def_property_ui_text(prop, "Location", "Location of the text");
   RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);