Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_texture.c
| Show All 18 Lines | |||||
| #include "DNA_world_types.h" | #include "DNA_world_types.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BKE_node.h" | #include "BKE_node.h" | ||||
| #include "BKE_node_tree_update.h" | #include "BKE_node_tree_update.h" | ||||
| #include "BKE_paint.h" | #include "BKE_paint.h" | ||||
| #include "BLT_translation.h" | |||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "RNA_enum_types.h" | #include "RNA_enum_types.h" | ||||
| #include "rna_internal.h" | #include "rna_internal.h" | ||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| ▲ Show 20 Lines • Show All 1,151 Lines • ▼ Show 20 Lines | static void rna_def_texture_image(BlenderRNA *brna) | ||||
| rna_def_filter_common(srna); | rna_def_filter_common(srna); | ||||
| prop = RNA_def_property(srna, "extension", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "extension", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "extend"); | RNA_def_property_enum_sdna(prop, NULL, "extend"); | ||||
| RNA_def_property_enum_items(prop, prop_image_extension); | RNA_def_property_enum_items(prop, prop_image_extension); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Extension", "How the image is extrapolated past its original bounds"); | prop, "Extension", "How the image is extrapolated past its original bounds"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_IMAGE); | |||||
| RNA_def_property_update(prop, 0, "rna_Texture_update"); | RNA_def_property_update(prop, 0, "rna_Texture_update"); | ||||
| prop = RNA_def_property(srna, "repeat_x", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "repeat_x", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "xrepeat"); | RNA_def_property_int_sdna(prop, NULL, "xrepeat"); | ||||
| RNA_def_property_range(prop, 1, 512); | RNA_def_property_range(prop, 1, 512); | ||||
| RNA_def_property_ui_text(prop, "Repeat X", "Repetition multiplier in the X direction"); | RNA_def_property_ui_text(prop, "Repeat X", "Repetition multiplier in the X direction"); | ||||
| RNA_def_property_update(prop, 0, "rna_Texture_update"); | RNA_def_property_update(prop, 0, "rna_Texture_update"); | ||||
| ▲ Show 20 Lines • Show All 477 Lines • Show Last 20 Lines | |||||