Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,503 Lines • ▼ Show 20 Lines | static void def_sh_tex_image(StructRNA *srna) | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Projection Blend", "For box projection, amount of blend to use between sides"); | prop, "Projection Blend", "For box projection, amount of blend to use between sides"); | ||||
| RNA_def_property_update(prop, 0, "rna_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "extension", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "extension", PROP_ENUM, PROP_NONE); | ||||
| 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_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "image_user", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "image_user", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_NEVER_NULL); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "iuser"); | RNA_def_property_pointer_sdna(prop, NULL, "iuser"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Image User", | "Image User", | ||||
| ▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | static void def_geo_image_texture(StructRNA *srna) | ||||
| RNA_def_property_enum_items(prop, fn_tex_prop_interpolation_items); | RNA_def_property_enum_items(prop, fn_tex_prop_interpolation_items); | ||||
| RNA_def_property_ui_text(prop, "Interpolation", "Method for smoothing values between pixels"); | RNA_def_property_ui_text(prop, "Interpolation", "Method for smoothing values between pixels"); | ||||
| RNA_def_property_update(prop, 0, "rna_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "extension", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "extension", PROP_ENUM, PROP_NONE); | ||||
| 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_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_sh_tex_gradient(StructRNA *srna) | static void def_sh_tex_gradient(StructRNA *srna) | ||||
| { | { | ||||
| static const EnumPropertyItem prop_gradient_type[] = { | static const EnumPropertyItem prop_gradient_type[] = { | ||||
| {SHD_BLEND_LINEAR, "LINEAR", 0, "Linear", "Create a linear progression"}, | {SHD_BLEND_LINEAR, "LINEAR", 0, "Linear", "Create a linear progression"}, | ||||
| {SHD_BLEND_QUADRATIC, "QUADRATIC", 0, "Quadratic", "Create a quadratic progression"}, | {SHD_BLEND_QUADRATIC, "QUADRATIC", 0, "Quadratic", "Create a quadratic progression"}, | ||||
| ▲ Show 20 Lines • Show All 7,460 Lines • Show Last 20 Lines | |||||