Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
| Context not available. | |||||
| rna_Node_update(bmain, scene, ptr); | rna_Node_update(bmain, scene, ptr); | ||||
| } | } | ||||
| static void rna_Math_update(Main *bmain, Scene *scene, PointerRNA *ptr) | |||||
| { | |||||
| bNodeTree *ntree = (bNodeTree *)ptr->id.data; | |||||
| bNode *node = (bNode *)ptr->data; | |||||
| nodeUpdate(ntree, node); | |||||
| rna_Node_update(bmain, scene, ptr); | |||||
| } | |||||
| static void rna_CompositorNodeScale_update(Main *bmain, Scene *scene, PointerRNA *ptr) | static void rna_CompositorNodeScale_update(Main *bmain, Scene *scene, PointerRNA *ptr) | ||||
| { | { | ||||
| bNodeTree *ntree = (bNodeTree *)ptr->id.data; | bNodeTree *ntree = (bNodeTree *)ptr->id.data; | ||||
| Context not available. | |||||
| 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, node_math_items); | RNA_def_property_enum_items(prop, node_math_items); | ||||
| RNA_def_property_ui_text(prop, "Operation", ""); | RNA_def_property_ui_text(prop, "Operation", "The mathmatical function to perform on the given inputs"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Math_update"); | ||||
| prop = RNA_def_property(srna, "use_clamp", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_clamp", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "custom2", SHD_MATH_CLAMP); | RNA_def_property_boolean_sdna(prop, NULL, "custom2", SHD_MATH_CLAMP); | ||||
| Context not available. | |||||