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 3,724 Lines • ▼ Show 20 Lines | static void def_hair(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "component", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "component", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | RNA_def_property_enum_sdna(prop, NULL, "custom1"); | ||||
| RNA_def_property_enum_items(prop, node_hair_items); | RNA_def_property_enum_items(prop, node_hair_items); | ||||
| RNA_def_property_ui_text(prop, "Component", ""); | RNA_def_property_ui_text(prop, "Component", ""); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_sh_uvmap(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| prop = RNA_def_property(srna, "from_dupli", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1); | |||||
| RNA_def_property_ui_text(prop, "From Dupli", "Use the parent of the dupli object if possible"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| RNA_def_struct_sdna_from(srna, "NodeShaderUVMap", "storage"); | |||||
| prop = RNA_def_property(srna, "uv_map", PROP_STRING, PROP_NONE); | |||||
| RNA_def_property_ui_text(prop, "UV Map", "UV coordinates to be used for mapping"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| RNA_def_struct_sdna_from(srna, "bNode", NULL); | |||||
| } | |||||
| static void def_sh_normal_map(StructRNA *srna) | static void def_sh_normal_map(StructRNA *srna) | ||||
| { | { | ||||
| static EnumPropertyItem prop_space_items[] = { | static EnumPropertyItem prop_space_items[] = { | ||||
| {SHD_NORMAL_MAP_TANGENT, "TANGENT", 0, "Tangent Space", "Tangent space normal mapping"}, | {SHD_NORMAL_MAP_TANGENT, "TANGENT", 0, "Tangent Space", "Tangent space normal mapping"}, | ||||
| {SHD_NORMAL_MAP_OBJECT, "OBJECT", 0, "Object Space", "Object space normal mapping"}, | {SHD_NORMAL_MAP_OBJECT, "OBJECT", 0, "Object Space", "Object space normal mapping"}, | ||||
| {SHD_NORMAL_MAP_WORLD, "WORLD", 0, "World Space", "World space normal mapping"}, | {SHD_NORMAL_MAP_WORLD, "WORLD", 0, "World Space", "World space normal mapping"}, | ||||
| {SHD_NORMAL_MAP_BLENDER_OBJECT, "BLENDER_OBJECT", 0, "Blender Object Space", "Object space normal mapping, compatible with Blender render baking"}, | {SHD_NORMAL_MAP_BLENDER_OBJECT, "BLENDER_OBJECT", 0, "Blender Object Space", "Object space normal mapping, compatible with Blender render baking"}, | ||||
| {SHD_NORMAL_MAP_BLENDER_WORLD, "BLENDER_WORLD", 0, "Blender World Space", "World space normal mapping, compatible with Blender render baking"}, | {SHD_NORMAL_MAP_BLENDER_WORLD, "BLENDER_WORLD", 0, "Blender World Space", "World space normal mapping, compatible with Blender render baking"}, | ||||
| ▲ Show 20 Lines • Show All 4,041 Lines • Show Last 20 Lines | |||||