From 9af7fa193f65f2caf206b079397fa810d012d803 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 7 Mar 2019 13:53:05 -0300 Subject: Do not annoy unrelated textures with texture editor. --- editor/plugins/texture_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/texture_editor_plugin.cpp b/editor/plugins/texture_editor_plugin.cpp index 831b2f3f16..6f9c9fa040 100644 --- a/editor/plugins/texture_editor_plugin.cpp +++ b/editor/plugins/texture_editor_plugin.cpp @@ -141,7 +141,7 @@ TextureEditor::TextureEditor() { // bool EditorInspectorPluginTexture::can_handle(Object *p_object) { - return Object::cast_to(p_object) != NULL; + return Object::cast_to(p_object) != NULL || Object::cast_to(p_object) != NULL || Object::cast_to(p_object) != NULL || Object::cast_to(p_object) != NULL || Object::cast_to(p_object) != NULL; } void EditorInspectorPluginTexture::parse_begin(Object *p_object) { -- cgit v1.2.3