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 10,823 Lines • ▼ Show 20 Lines | static void rna_def_node(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Mute", ""); | RNA_def_property_ui_text(prop, "Mute", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "show_texture", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_texture", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", NODE_ACTIVE_TEXTURE); | RNA_def_property_boolean_sdna(prop, NULL, "flag", NODE_ACTIVE_TEXTURE); | ||||
| RNA_def_property_ui_text(prop, "Show Texture", "Display node in viewport textured shading mode"); | RNA_def_property_ui_text(prop, "Show Texture", "Display node in viewport textured shading mode"); | ||||
| RNA_def_property_update(prop, 0, "rna_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "active_preview", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", NODE_ACTIVE_PREVIEW); | |||||
| RNA_def_property_ui_text(prop, "Active Preview", "Node is previewed in other editor"); | |||||
HooglyBoogly: I'll suggest being a bit more clear: `"The data passing though the node is previewed in another… | |||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| RNA_def_property_update(prop, NC_NODE, NULL); | |||||
| /* generic property update function */ | /* generic property update function */ | ||||
| func = RNA_def_function(srna, "socket_value_update", "rna_Node_socket_value_update"); | func = RNA_def_function(srna, "socket_value_update", "rna_Node_socket_value_update"); | ||||
| RNA_def_function_ui_description(func, "Update after property changes"); | RNA_def_function_ui_description(func, "Update after property changes"); | ||||
| RNA_def_function_flag(func, FUNC_USE_SELF_ID); | RNA_def_function_flag(func, FUNC_USE_SELF_ID); | ||||
| parm = RNA_def_pointer(func, "context", "Context", "", ""); | parm = RNA_def_pointer(func, "context", "Context", "", ""); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); | ||||
| func = RNA_def_function(srna, "is_registered_node_type", "rna_Node_is_registered_node_type"); | func = RNA_def_function(srna, "is_registered_node_type", "rna_Node_is_registered_node_type"); | ||||
| ▲ Show 20 Lines • Show All 742 Lines • Show Last 20 Lines | |||||
I'll suggest being a bit more clear: "The data passing though the node is previewed in another editor". Something like that at least.