diff options
author | Vaishnav S <padthai> | 2019-02-19 17:23:46 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-02-19 17:23:46 +0300 |
commit | 22eeae8104505b176cee5b9bba2071303b4465ea (patch) | |
tree | aeff9930654080cfcc518e3601dfc7108b5261b6 /source/blender/makesrna | |
parent | cba447966ec51db48459e57d838e8b4562b96c5e (diff) |
Units: Fix some property subtypes
This commit only contains some of the changes in the diff.
Some require more discussion/work.
Differential Revision: https://developer.blender.org/D4337
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_curve.c | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c index 7345aa39f4f..79af46fd38e 100644 --- a/source/blender/makesrna/intern/rna_curve.c +++ b/source/blender/makesrna/intern/rna_curve.c @@ -897,7 +897,7 @@ static void rna_def_path(BlenderRNA *UNUSED(brna), StructRNA *srna) PropertyRNA *prop; /* number values */ - prop = RNA_def_property(srna, "path_duration", PROP_INT, PROP_NONE); + prop = RNA_def_property(srna, "path_duration", PROP_INT, PROP_TIME); RNA_def_property_int_sdna(prop, NULL, "pathlen"); RNA_def_property_range(prop, 1, MAXFRAME); RNA_def_property_ui_text(prop, "Path Length", @@ -1459,7 +1459,7 @@ static void rna_def_curve(BlenderRNA *brna) "Surface resolution in V direction used while rendering (zero uses preview resolution)"); - prop = RNA_def_property(srna, "eval_time", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "eval_time", PROP_FLOAT, PROP_TIME); RNA_def_property_float_sdna(prop, NULL, "ctime"); RNA_def_property_ui_text(prop, "Evaluation Time", "Parametric position along the length of the curve that Objects 'following' it should be " diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 37be69fd89d..66d84ce61a2 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -1776,7 +1776,7 @@ static void rna_def_modifier_wave(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Z Normal", "Enable displacement along the Z normal"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); - prop = RNA_def_property(srna, "time_offset", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "time_offset", PROP_FLOAT, PROP_TIME); RNA_def_property_float_sdna(prop, NULL, "timeoffs"); RNA_def_property_range(prop, MINAFRAMEF, MAXFRAMEF); RNA_def_property_ui_text(prop, "Time Offset", @@ -3071,7 +3071,7 @@ static void rna_def_modifier_bevel(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Width", "Bevel amount"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); - prop = RNA_def_property(srna, "width_pct", PROP_FLOAT, PROP_FACTOR); + prop = RNA_def_property(srna, "width_pct", PROP_FLOAT, PROP_PERCENTAGE); RNA_def_property_float_sdna(prop, NULL, "value"); RNA_def_property_range(prop, 0, FLT_MAX); RNA_def_property_ui_range(prop, 0.0f, 100.0f, 5.0, 2); |