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,828 Lines • ▼ Show 20 Lines | static void def_frame(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "label_size", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "label_size", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "label_size"); | RNA_def_property_int_sdna(prop, NULL, "label_size"); | ||||
| RNA_def_property_range(prop, 8, 64); | RNA_def_property_range(prop, 8, 64); | ||||
| RNA_def_property_ui_text(prop, "Label Font Size", "Font size to use for displaying the label"); | RNA_def_property_ui_text(prop, "Label Font Size", "Font size to use for displaying the label"); | ||||
| RNA_def_property_update(prop, NC_NODE | ND_DISPLAY, NULL); | RNA_def_property_update(prop, NC_NODE | ND_DISPLAY, NULL); | ||||
| } | } | ||||
| static void def_map_range(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| prop = RNA_def_property(srna, "clamp", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1); | |||||
| RNA_def_property_ui_text(prop, "Clamp", "Clamp the result to the target range [To Min, To Max]"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_math(StructRNA *srna) | static void def_math(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| prop = RNA_def_property(srna, "operation", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "operation", 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, rna_enum_node_math_items); | RNA_def_property_enum_items(prop, rna_enum_node_math_items); | ||||
| RNA_def_property_ui_text(prop, "Operation", ""); | RNA_def_property_ui_text(prop, "Operation", ""); | ||||
| ▲ Show 20 Lines • Show All 5,524 Lines • Show Last 20 Lines | |||||