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,768 Lines • ▼ Show 20 Lines | static void def_geo_rotate_points(StructRNA *srna) | ||||
| 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"); | ||||
| prop = RNA_def_property(srna, "input_type_rotation", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "input_type_rotation", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_vector); | RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_vector); | ||||
| RNA_def_property_ui_text(prop, "Input Type Rotation", ""); | RNA_def_property_ui_text(prop, "Input Type Rotation", ""); | ||||
| 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_align_rotation_to_vector(StructRNA *srna) | |||||
| { | |||||
| static const EnumPropertyItem axis_items[] = { | |||||
| {GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_X, | |||||
| "X", | |||||
| ICON_NONE, | |||||
| "X", | |||||
| "Align the X axis with the vector"}, | |||||
| {GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_Y, | |||||
| "Y", | |||||
| ICON_NONE, | |||||
| "Y", | |||||
| "Align the Y axis with the vector"}, | |||||
| {GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_Z, | |||||
| "Z", | |||||
| ICON_NONE, | |||||
| "Z", | |||||
| "Align the Z axis with the vector"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryAlignRotationToVector", "storage"); | |||||
| prop = RNA_def_property(srna, "axis", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, axis_items); | |||||
| RNA_def_property_ui_text(prop, "Axis", "Axis to align to the vector"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| prop = RNA_def_property(srna, "input_type_factor", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_float); | |||||
| RNA_def_property_ui_text(prop, "Input Type Factor", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); | |||||
| prop = RNA_def_property(srna, "input_type_vector", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_node_geometry_attribute_input_type_items_vector); | |||||
| RNA_def_property_ui_text(prop, "Input Type Vector", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_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,913 Lines • Show Last 20 Lines | |||||