diff options
author | Marco <nacioss> | 2021-01-27 16:54:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-01-27 18:48:50 +0300 |
commit | 0af512abdf05380088f63e38cac6dbaf90003be0 (patch) | |
tree | ee2f487232a1aaaa2d77d15450eff00998a51bdd /source/blender/makesrna | |
parent | 9b80291412feed2a9942eb41d0bd9390035a702c (diff) |
Sky Texture: change Nishita Altitude to use unit system
Differential Revision: https://developer.blender.org/D9968
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 90badae2e8e..013b3880bdf 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -4741,9 +4741,10 @@ static void def_sh_tex_sky(StructRNA *srna) RNA_def_property_float_default(prop, 0.0f); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); - prop = RNA_def_property(srna, "altitude", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "altitude", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_ui_text(prop, "Altitude", "Height from sea level"); - RNA_def_property_range(prop, 0.0f, 60.0f); + RNA_def_property_range(prop, 0.0f, 60000.0f); + RNA_def_property_ui_range(prop, 0.0f, 60000.0f, 1000, 1); RNA_def_property_float_default(prop, 0.0f); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); |