You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Store panels and docks singletons in their own classes
This commit is contained in:
@@ -5012,7 +5012,7 @@ struct _AnimMoveRestore {
|
||||
void AnimationTrackEditor::_clear_key_edit() {
|
||||
if (key_edit) {
|
||||
// If key edit is the object being inspected, remove it first.
|
||||
if (EditorNode::get_singleton()->get_inspector()->get_edited_object() == key_edit) {
|
||||
if (InspectorDock::get_inspector_singleton()->get_edited_object() == key_edit) {
|
||||
EditorNode::get_singleton()->push_item(nullptr);
|
||||
}
|
||||
|
||||
@@ -5022,7 +5022,7 @@ void AnimationTrackEditor::_clear_key_edit() {
|
||||
}
|
||||
|
||||
if (multi_key_edit) {
|
||||
if (EditorNode::get_singleton()->get_inspector()->get_edited_object() == multi_key_edit) {
|
||||
if (InspectorDock::get_inspector_singleton()->get_edited_object() == multi_key_edit) {
|
||||
EditorNode::get_singleton()->push_item(nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user