correct bad maximum value, for wile-loop node, outside the range of a short.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 12 Sep 2011 15:29:37 +0000 (15:29 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 12 Sep 2011 15:29:37 +0000 (15:29 +0000)
source/blender/makesrna/intern/rna_nodetree.c

index 49a0458977aadbddebe4e2343560a2bfcdaa2137..0554e4d00adef503650844811ae19d6572810916 100644 (file)
@@ -922,7 +922,7 @@ static void def_whileloop(StructRNA *srna)
 
        prop = RNA_def_property(srna, "max_iterations", PROP_INT, PROP_NONE);
        RNA_def_property_int_sdna(prop, NULL, "custom1");
-       RNA_def_property_range(prop, 0.0f, 10000000.0f);
+       RNA_def_property_range(prop, 0.0f, SHRT_MAX);
        RNA_def_property_ui_text(prop, "Max. Iterations", "Limit for number of iterations");
        RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_NodeGroup_update");
 }