Revision: 46545
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46545
Author:   campbellbarton
Date:     2012-05-11 10:20:35 +0000 (Fri, 11 May 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_access.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c   2012-05-11 
10:04:55 UTC (rev 46544)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c   2012-05-11 
10:20:35 UTC (rev 46545)
@@ -1853,6 +1853,8 @@
                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 @@
                IDPropertyTemplate val = {0};
                IDProperty *group;
 
+               RNA_property_float_clamp(ptr, prop, &value);
+
                val.f = value;
 
                group = RNA_struct_idprops(ptr, 1);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to