Ignore node rename if already exited blend tree
This commit is contained in:
parent
c658fa8b77
commit
f9bee90994
1 changed files with 4 additions and 0 deletions
|
@ -907,6 +907,10 @@ void AnimationNodeBlendTreeEditor::_bind_methods() {
|
||||||
AnimationNodeBlendTreeEditor *AnimationNodeBlendTreeEditor::singleton = nullptr;
|
AnimationNodeBlendTreeEditor *AnimationNodeBlendTreeEditor::singleton = nullptr;
|
||||||
|
|
||||||
void AnimationNodeBlendTreeEditor::_node_renamed(const String &p_text, Ref<AnimationNode> p_node) {
|
void AnimationNodeBlendTreeEditor::_node_renamed(const String &p_text, Ref<AnimationNode> p_node) {
|
||||||
|
if (blend_tree.is_null()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String prev_name = blend_tree->get_node_name(p_node);
|
String prev_name = blend_tree->get_node_name(p_node);
|
||||||
ERR_FAIL_COND(prev_name.is_empty());
|
ERR_FAIL_COND(prev_name.is_empty());
|
||||||
GraphNode *gn = Object::cast_to<GraphNode>(graph->get_node(prev_name));
|
GraphNode *gn = Object::cast_to<GraphNode>(graph->get_node(prev_name));
|
||||||
|
|
Loading…
Reference in a new issue