浏览代码

Do not annoy unrelated textures with texture editor.

Juan Linietsky 6 年之前
父节点
当前提交
9af7fa193f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/texture_editor_plugin.cpp

+ 1 - 1
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) {