[Bf-blender-cvs] [f24647bd4dd] temp-udim-images: Only allow switching an image to Tiled if its filename contains 1001
Lukas Stockner
noreply at git.blender.org
Wed Jun 20 19:13:33 CEST 2018
Commit: f24647bd4dd3dc2ad5b7d8953fe829191d66e81e
Author: Lukas Stockner
Date: Wed Jun 20 02:25:55 2018 +0200
Branches: temp-udim-images
https://developer.blender.org/rBf24647bd4dd3dc2ad5b7d8953fe829191d66e81e
Only allow switching an image to Tiled if its filename contains 1001
===================================================================
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 5fcf22e092f..0a7d07494f2 100644
--- a/source/blender/makesrna/intern/rna_image.c
+++ b/source/blender/makesrna/intern/rna_image.c
@@ -211,7 +211,9 @@ static const EnumPropertyItem *rna_Image_source_itemf(bContext *UNUSED(C), Point
RNA_enum_items_add_value(&item, &totitem, image_source_items, IMA_SRC_SEQUENCE);
RNA_enum_items_add_value(&item, &totitem, image_source_items, IMA_SRC_MOVIE);
RNA_enum_items_add_value(&item, &totitem, image_source_items, IMA_SRC_GENERATED);
- RNA_enum_items_add_value(&item, &totitem, image_source_items, IMA_SRC_TILED);
+ if (BLI_stringdec(ima->name, NULL, NULL, NULL) == 1001) {
+ RNA_enum_items_add_value(&item, &totitem, image_source_items, IMA_SRC_TILED);
+ }
}
RNA_enum_item_end(&item, &totitem);
More information about the Bf-blender-cvs
mailing list