diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-05-11 21:31:58 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-05-11 21:31:58 +0300 |
commit | e10eaaad13893b0a12d9f26adfd868c773521859 (patch) | |
tree | d83f85cda61fa0152a340e2116e187efbac29e85 /source/blender/makesrna | |
parent | 4deea4f4c57aae13813b6ac67b3a4fbfad6dd1a0 (diff) | |
parent | acd5f5285e9416f11b462f67f781bfebdbd7e017 (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 8089aa389c9..30d1380417f 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -2035,6 +2035,11 @@ static bNodeSocket *rna_Node_inputs_new(ID *id, const char *name, const char *identifier) { + + if (ELEM(node->type, NODE_GROUP_INPUT, NODE_FRAME)) { + BKE_report(reports, RPT_ERROR, "Unable to create socket"); + return NULL; + } /* Adding an input to a group node is not working, * simpler to add it to its underlying nodetree. */ if (ELEM(node->type, NODE_GROUP, NODE_CUSTOM_GROUP) && node->id != NULL) { @@ -2065,6 +2070,10 @@ static bNodeSocket *rna_Node_outputs_new(ID *id, const char *name, const char *identifier) { + if (ELEM(node->type, NODE_GROUP_OUTPUT, NODE_FRAME)) { + BKE_report(reports, RPT_ERROR, "Unable to create socket"); + return NULL; + } /* Adding an output to a group node is not working, * simpler to add it to its underlying nodetree. */ if (ELEM(node->type, NODE_GROUP, NODE_CUSTOM_GROUP) && node->id != NULL) { |