Use prop_factor instead of prop_percentage for Sequencer text placement
authorWilliam Reynish <billrey@me.com>
Tue, 25 Jun 2019 12:10:15 +0000 (14:10 +0200)
committerWilliam Reynish <billrey@me.com>
Tue, 25 Jun 2019 12:10:15 +0000 (14:10 +0200)
Since it goes from 0-1 and not 0-100.

source/blender/makesrna/intern/rna_sequencer.c

index d0332afb2fb7c9ad986d83ef9f511cdeff6899c4..bbf45695d30b521fd65cad092bcd1172b39ad2b4 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_PERCENTAGE);
+  prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_FACTOR);
   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);