Merge pull request #29177 from YeldhamDev/animeditor_node_fix
Fix "Node not found:" error message when adding tracks
This commit is contained in:
commit
f6be4ebc0d
@ -63,8 +63,6 @@ public:
|
|||||||
ClassDB::bind_method("_dont_undo_redo", &AnimationTrackKeyEdit::_dont_undo_redo);
|
ClassDB::bind_method("_dont_undo_redo", &AnimationTrackKeyEdit::_dont_undo_redo);
|
||||||
}
|
}
|
||||||
|
|
||||||
//PopupDialog *ke_dialog;
|
|
||||||
|
|
||||||
void _fix_node_path(Variant &value) {
|
void _fix_node_path(Variant &value) {
|
||||||
|
|
||||||
NodePath np = value;
|
NodePath np = value;
|
||||||
@ -3456,7 +3454,7 @@ void AnimationTrackEditor::_update_tracks() {
|
|||||||
Ref<Texture> icon = get_icon("Node", "EditorIcons");
|
Ref<Texture> icon = get_icon("Node", "EditorIcons");
|
||||||
String name = base_path;
|
String name = base_path;
|
||||||
String tooltip;
|
String tooltip;
|
||||||
if (root) {
|
if (root && root->has_node(base_path)) {
|
||||||
Node *n = root->get_node(base_path);
|
Node *n = root->get_node(base_path);
|
||||||
if (n) {
|
if (n) {
|
||||||
if (has_icon(n->get_class(), "EditorIcons")) {
|
if (has_icon(n->get_class(), "EditorIcons")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user