Fix T67649: clarify description of node update method

This commit is contained in:
Brecht Van Lommel 2020-02-13 11:02:12 +01:00
parent 0840469ccd
commit d1cd3ec9ba
Notes: blender-bot 2023-02-14 01:34:41 +01:00
Referenced by issue #67649, Update functions not working when changing socket values in Node bpy_struct
1 changed files with 4 additions and 2 deletions

View File

@ -8618,7 +8618,8 @@ static void rna_def_internal_node(BlenderRNA *brna)
/* update */
func = RNA_def_function(srna, "update", "rna_NodeInternal_update");
RNA_def_function_ui_description(func, "Update on editor changes");
RNA_def_function_ui_description(
func, "Update on node graph topology changes (adding or removing nodes and links)");
RNA_def_function_flag(func, FUNC_USE_SELF_ID | FUNC_ALLOW_WRITE);
/* draw buttons */
@ -8922,7 +8923,8 @@ static void rna_def_node(BlenderRNA *brna)
/* update */
func = RNA_def_function(srna, "update", NULL);
RNA_def_function_ui_description(func, "Update on editor changes");
RNA_def_function_ui_description(
func, "Update on node graph topology changes (adding or removing nodes and links)");
RNA_def_function_flag(func, FUNC_USE_SELF_ID | FUNC_REGISTER_OPTIONAL | FUNC_ALLOW_WRITE);
/* insert_link */