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 11,029 Lines • ▼ Show 20 Lines | static void def_geo_separate_geometry(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "domain", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "domain", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_attribute_domain_without_corner_items); | RNA_def_property_enum_items(prop, rna_enum_attribute_domain_without_corner_items); | ||||
| RNA_def_property_enum_default(prop, ATTR_DOMAIN_POINT); | RNA_def_property_enum_default(prop, ATTR_DOMAIN_POINT); | ||||
| RNA_def_property_ui_text(prop, "Domain", "Which domain to separate on"); | RNA_def_property_ui_text(prop, "Domain", "Which domain to separate on"); | ||||
| 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_geo_viewer(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| RNA_def_struct_sdna_from(srna, "NodeGeometryViewer", "storage"); | |||||
| prop = RNA_def_property(srna, "data_type", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_enum_attribute_type_items); | |||||
| RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_GeometryNodeAttributeFill_type_itemf"); | |||||
| RNA_def_property_enum_default(prop, CD_PROP_FLOAT); | |||||
| RNA_def_property_ui_text(prop, "Data Type", "Type of data stored in attribute"); | |||||
HooglyBoogly: I'd just remove the tooltip here, it's not very helpful and it's sort of conceptually incorrect. | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_GeometryNode_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 2,065 Lines • Show Last 20 Lines | |||||
I'd just remove the tooltip here, it's not very helpful and it's sort of conceptually incorrect.