[Bf-blender-cvs] [838d20b990e] blender-v3.4-release: make float value explicit

Nate Rupsis noreply at git.blender.org
Thu Nov 3 18:19:14 CET 2022


Commit: 838d20b990ea97cc97d7a5a39baac824dd479a0e
Author: Nate Rupsis
Date:   Thu Nov 3 10:38:35 2022 -0500
Branches: blender-v3.4-release
https://developer.blender.org/rB838d20b990ea97cc97d7a5a39baac824dd479a0e

make float value explicit

===================================================================

M	source/blender/makesrna/intern/rna_nla.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_nla.c b/source/blender/makesrna/intern/rna_nla.c
index 4412dcee4c1..de033408170 100644
--- a/source/blender/makesrna/intern/rna_nla.c
+++ b/source/blender/makesrna/intern/rna_nla.c
@@ -822,7 +822,7 @@ static void rna_def_nlastrip(BlenderRNA *brna)
   RNA_def_property_float_funcs(prop, NULL, "rna_NlaStrip_repeat_set", NULL);
   /* these limits have currently be chosen arbitrarily, but could be extended
    * (minimum should still be > 0 though) if needed... */
-  RNA_def_property_float_default(prop, 1.0);
+  RNA_def_property_float_default(prop, 1.0f);
   RNA_def_property_range(prop, 0.1f, 1000.0f);
   RNA_def_property_ui_text(prop, "Repeat", "Number of times to repeat the action range");
   RNA_def_property_update(
@@ -833,7 +833,7 @@ static void rna_def_nlastrip(BlenderRNA *brna)
   RNA_def_property_float_funcs(prop, NULL, "rna_NlaStrip_scale_set", NULL);
   /* these limits can be extended, but beyond this, we can get some crazy+annoying bugs
    * due to numeric errors */
-  RNA_def_property_float_default(prop, 1.0);
+  RNA_def_property_float_default(prop, 1.0f);
   RNA_def_property_range(prop, 0.0001f, 1000.0f);
   RNA_def_property_ui_text(prop, "Scale", "Scaling factor for action");
   RNA_def_property_update(



More information about the Bf-blender-cvs mailing list