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:25:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-11 14:25:12 +0400
commitb667f29a84384c360d7bdef9f048cf1386fcacf9 (patch)
treeca557e4112eeb7730ec62a6025e3342e5d9333b5 /source/blender/makesrna
parenta2e225277f134aeb5ea6a9e5ebd884a3bcb98c88 (diff)
no need to clamp python values twice when assigning.
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 e756865a14d..573d7216114 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -1972,6 +1972,8 @@ void RNA_property_int_set_array(PointerRNA *ptr, PropertyRNA *prop, const int *v
IDPropertyTemplate val = {0};
IDProperty *group;
+ /* TODO: RNA_property_int_clamp_array(ptr, prop, &value); */
+
val.array.len = prop->totarraylength;
val.array.type = IDP_INT;
@@ -2232,6 +2234,8 @@ void RNA_property_float_set_array(PointerRNA *ptr, PropertyRNA *prop, const floa
IDPropertyTemplate val = {0};
IDProperty *group;
+ /* TODO: RNA_property_float_clamp_array(ptr, prop, &value); */
+
val.array.len = prop->totarraylength;
val.array.type = IDP_FLOAT;