You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-01 16:38:31 +00:00
Do not annoy unrelated textures with texture editor.
This commit is contained in:
@@ -141,7 +141,7 @@ TextureEditor::TextureEditor() {
|
|||||||
//
|
//
|
||||||
bool EditorInspectorPluginTexture::can_handle(Object *p_object) {
|
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) {
|
void EditorInspectorPluginTexture::parse_begin(Object *p_object) {
|
||||||
|
|||||||
Reference in New Issue
Block a user