[Bf-blender-cvs] [9b745515e40] temp-udim-images: Fix minimum for tile number argument of ImageTiles.get

Lukas Stockner noreply at git.blender.org
Fri Jun 15 19:32:40 CEST 2018


Commit: 9b745515e405479a5899f1326082fbdbf2e936d2
Author: Lukas Stockner
Date:   Fri Jun 15 19:32:13 2018 +0200
Branches: temp-udim-images
https://developer.blender.org/rB9b745515e405479a5899f1326082fbdbf2e936d2

Fix minimum for tile number argument of ImageTiles.get

===================================================================

M	source/blender/makesrna/intern/rna_image.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c
index 3d807f3ec02..92ee60514a2 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -720,7 +720,7 @@ static void rna_def_image_tiles(BlenderRNA *brna, PropertyRNA *cprop)
 
 	func = RNA_def_function(srna, "get", "BKE_image_get_tile");
 	RNA_def_function_ui_description(func, "Get a tile based on its tile number");
-	parm = RNA_def_int(func, "tile_number", 1, 1, INT_MAX, "", "Number of the tile", 1, 100);
+	parm = RNA_def_int(func, "tile_number", 0, 0, INT_MAX, "", "Number of the tile", 1, 100);
 	RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
 	parm = RNA_def_pointer(func, "result", "ImageTile", "", "The tile");
 	RNA_def_function_return(func, parm);



More information about the Bf-blender-cvs mailing list