Fix 'GDNativeLibrary' editor being incorrectly opened
(cherry picked from commit 147990cb6d
)
This commit is contained in:
parent
00883e8fdc
commit
e384d77194
|
@ -387,11 +387,9 @@ GDNativeLibraryEditor::GDNativeLibraryEditor() {
|
||||||
|
|
||||||
void GDNativeLibraryEditorPlugin::edit(Object *p_node) {
|
void GDNativeLibraryEditorPlugin::edit(Object *p_node) {
|
||||||
|
|
||||||
if (Object::cast_to<GDNativeLibrary>(p_node)) {
|
Ref<GDNativeLibrary> new_library = Object::cast_to<GDNativeLibrary>(p_node);
|
||||||
library_editor->edit(Object::cast_to<GDNativeLibrary>(p_node));
|
if (new_library.is_valid())
|
||||||
library_editor->show();
|
library_editor->edit(new_library);
|
||||||
} else
|
|
||||||
library_editor->hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GDNativeLibraryEditorPlugin::handles(Object *p_node) const {
|
bool GDNativeLibraryEditorPlugin::handles(Object *p_node) const {
|
||||||
|
|
Loading…
Reference in New Issue