[Bf-blender-cvs] [81e8b8f88a9] master: Use prop_factor instead of prop_percentage for Sequencer text placement
William Reynish
noreply at git.blender.org
Tue Jun 25 14:10:20 CEST 2019
Commit: 81e8b8f88a9e8a753b7beac232a13d8f808b8bdd
Author: William Reynish
Date: Tue Jun 25 14:10:15 2019 +0200
Branches: master
https://developer.blender.org/rB81e8b8f88a9e8a753b7beac232a13d8f808b8bdd
Use prop_factor instead of prop_percentage for Sequencer text placement
Since it goes from 0-1 and not 0-100.
===================================================================
M source/blender/makesrna/intern/rna_sequencer.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c
index d0332afb2fb..bbf45695d30 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -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);
More information about the Bf-blender-cvs
mailing list