diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-03-07 13:53:05 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2019-03-07 13:54:05 -0300 |
commit | 9af7fa193f65f2caf206b079397fa810d012d803 (patch) | |
tree | 74721b77faf7d584a1f0d75379abcaf1ae4221e7 /editor/plugins | |
parent | b38f44e177c884f6cc1a8e669ed2ecb684461b2e (diff) |
Do not annoy unrelated textures with texture editor.
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/texture_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Texture>(p_object) != NULL; + return Object::cast_to<ImageTexture>(p_object) != NULL || Object::cast_to<AtlasTexture>(p_object) != NULL || Object::cast_to<StreamTexture>(p_object) != NULL || Object::cast_to<LargeTexture>(p_object) != NULL || Object::cast_to<AnimatedTexture>(p_object) != NULL; } void EditorInspectorPluginTexture::parse_begin(Object *p_object) { |