Use prop_factor instead of prop_percentage for Sequencer text placement
Since it goes from 0-1 and not 0-100.
This commit is contained in:
parent
0c2c57167b
commit
81e8b8f88a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue