diff options
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 294e812d598..e756865a14d 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1853,6 +1853,8 @@ void RNA_property_int_set(PointerRNA *ptr, PropertyRNA *prop, int value) IDPropertyTemplate val = {0}; IDProperty *group; + RNA_property_int_clamp(ptr, prop, &value); + val.i = value; group = RNA_struct_idprops(ptr, 1); @@ -2093,6 +2095,8 @@ void RNA_property_float_set(PointerRNA *ptr, PropertyRNA *prop, float value) IDPropertyTemplate val = {0}; IDProperty *group; + RNA_property_float_clamp(ptr, prop, &value); + val.f = value; group = RNA_struct_idprops(ptr, 1); |