Fix #111607: Do not unregister internal nodes #111615
|
@ -1768,7 +1768,9 @@ static bool rna_Node_unregister(Main * /*bmain*/, StructRNA *type)
|
|||
{
|
||||
bNodeType *nt = static_cast<bNodeType *>(RNA_struct_blender_type_get(type));
|
||||
|
||||
if (!nt) {
|
||||
/* `nt->rna_ext.data` is the python object. If it's nullptr then it's an
|
||||
ChengduLittleA marked this conversation as resolved
Outdated
|
||||
* internally registered node, thus can't unregister. */
|
||||
if (!nt || !nt->rna_ext.data) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Picky:
The
/**
comment format is meant for function/struct documentation. Comments inside of functions can just use/*
like normal.Also,
it's a internally
->it's an internally