Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-11 14:20:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-11 14:20:35 +0400
commita2e225277f134aeb5ea6a9e5ebd884a3bcb98c88 (patch)
tree0b4fd56eabccd5b22e2291e9281339d3e2b6b032 /source/blender/makesrna
parent6ce6dfba1697adc01353cf6b0a608165e0b2b726 (diff)
sequencer bug, was possible to add strips to negative channels, the channel clamping was ignored when calling RNA_property_int_set() when setting operator int/floats.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_access.c4
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);