[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19665] branches/blender2.5/blender/source /blender/makesrna/intern/rna_scene.c: changed parts x parts y and threads to be minimum of 1, thnx DingTo

Shaul Kedem shaul_kedem at yahoo.com
Sat Apr 11 18:10:18 CEST 2009


Revision: 19665
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19665
Author:   shul
Date:     2009-04-11 18:10:15 +0200 (Sat, 11 Apr 2009)

Log Message:
-----------
changed parts x parts y and threads to be minimum of 1, thnx DingTo

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_scene.c

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_scene.c	2009-04-11 15:59:11 UTC (rev 19664)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_scene.c	2009-04-11 16:10:15 UTC (rev 19665)
@@ -229,13 +229,13 @@
 	
 	prop= RNA_def_property(srna, "parts_x", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "xparts");
-	RNA_def_property_range(prop, 0, 512);
+	RNA_def_property_range(prop, 1, 512);
 	RNA_def_property_ui_text(prop, "Parts X", "Number of horizontal tiles to use while rendering.");
 	RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
 	
 	prop= RNA_def_property(srna, "parts_y", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "yparts");
-	RNA_def_property_range(prop, 0, 512);
+	RNA_def_property_range(prop, 1, 512);
 	RNA_def_property_ui_text(prop, "Parts Y", "Number of vertical tiles to use while rendering.");
 	RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
 	
@@ -361,7 +361,7 @@
 	
 	prop= RNA_def_property(srna, "threads", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "threads");
-	RNA_def_property_range(prop, 0, 8);
+	RNA_def_property_range(prop, 1, 8);
 	RNA_def_property_ui_text(prop, "Threads", "Number of CPU threads to use simultaneously while rendering (for multi-core/CPU systems)");
 	RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
 	





More information about the Bf-blender-cvs mailing list