diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-27 21:22:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-27 21:22:04 +0400 |
commit | a73c3fe5c992777718431d5e5bb5f8a2c3b7a1bc (patch) | |
tree | 51ca1d7a06715f0dde24196157c915b12da334c0 /source/blender/makesrna/intern/rna_access.c | |
parent | 9c8f1e2ef487483bc374feaed9ff709e07638623 (diff) |
subsurf, derived mesh and other misc files: floats were being implicitly promoted to doubles, adjust to use floats.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 4d2e205d1a9..4ca73f81965 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -903,10 +903,10 @@ void RNA_property_float_range(PointerRNA *ptr, PropertyRNA *prop, float *hardmin IDProperty *item; item= IDP_GetPropertyTypeFromGroup(idp_ui, "min", IDP_DOUBLE); - *hardmin= item ? IDP_Double(item) : FLT_MIN; + *hardmin= item ? (float)IDP_Double(item) : FLT_MIN; item= IDP_GetPropertyTypeFromGroup(idp_ui, "max", IDP_DOUBLE); - *hardmax= item ? IDP_Double(item) : FLT_MAX; + *hardmax= item ? (float)IDP_Double(item) : FLT_MAX; return; } @@ -934,16 +934,16 @@ void RNA_property_float_ui_range(PointerRNA *ptr, PropertyRNA *prop, float *soft IDProperty *item; item= IDP_GetPropertyTypeFromGroup(idp_ui, "soft_min", IDP_DOUBLE); - *softmin= item ? IDP_Double(item) : FLT_MIN; + *softmin= item ? (float)IDP_Double(item) : FLT_MIN; item= IDP_GetPropertyTypeFromGroup(idp_ui, "soft_max", IDP_DOUBLE); - *softmax= item ? IDP_Double(item) : FLT_MAX; + *softmax= item ? (float)IDP_Double(item) : FLT_MAX; item= IDP_GetPropertyTypeFromGroup(idp_ui, "step", IDP_DOUBLE); - *step= item ? IDP_Double(item) : 1.0f; + *step= item ? (float)IDP_Double(item) : 1.0f; item= IDP_GetPropertyTypeFromGroup(idp_ui, "precision", IDP_DOUBLE); - *precision= item ? IDP_Double(item) : 3.0f; + *precision= item ? (float)IDP_Double(item) : 3.0f; return; } |