[Bf-blender-cvs] [ab629a95f00] temp-udim-images: Limit active tile to positive numbers

Lukas Stockner noreply at git.blender.org
Fri Jun 15 18:44:51 CEST 2018


Commit: ab629a95f003339bb9a8d8857960bb3d604421ec
Author: Lukas Stockner
Date:   Fri Jun 15 17:54:06 2018 +0200
Branches: temp-udim-images
https://developer.blender.org/rBab629a95f003339bb9a8d8857960bb3d604421ec

Limit active tile to positive numbers

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

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

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

diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index e71336c3601..2a1ddbd0b28 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -3138,6 +3138,7 @@ static void rna_def_space_image(BlenderRNA *brna)
 
 	prop = RNA_def_property(srna, "current_tile", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "curtile");
+	RNA_def_property_range(prop, 0, 1000);
 	RNA_def_property_ui_text(prop, "Current Tile", "The currently selected tile");
 	RNA_def_property_update(prop, NC_SPACE | ND_SPACE_IMAGE, NULL);



More information about the Bf-blender-cvs mailing list