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 8,362 Lines • ▼ Show 20 Lines | static void def_geo_attribute_math(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "input_type_b", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "input_type_b", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "custom2"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "custom2"); | ||||
| RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_b_items); | RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_b_items); | ||||
| RNA_def_property_ui_text(prop, "Input Type B", ""); | RNA_def_property_ui_text(prop, "Input Type B", ""); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | ||||
| } | } | ||||
| static void def_geo_mix_attributes(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| prop = RNA_def_property(srna, "blend_type", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | |||||
| RNA_def_property_enum_items(prop, rna_enum_ramp_blend_items); | |||||
| RNA_def_property_enum_default(prop, MA_RAMP_BLEND); | |||||
| RNA_def_property_ui_text(prop, "Blending Mode", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| /* -------------------------------------------------------------------------- */ | /* -------------------------------------------------------------------------- */ | ||||
| static void rna_def_shader_node(BlenderRNA *brna) | static void rna_def_shader_node(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| srna = RNA_def_struct(brna, "ShaderNode", "NodeInternal"); | srna = RNA_def_struct(brna, "ShaderNode", "NodeInternal"); | ||||
| RNA_def_struct_ui_text(srna, "Shader Node", "Material shader node"); | RNA_def_struct_ui_text(srna, "Shader Node", "Material shader node"); | ||||
| ▲ Show 20 Lines • Show All 1,860 Lines • Show Last 20 Lines | |||||