aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/texture_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-05-26 21:49:49 -0300
committerJuan Linietsky2017-05-26 22:31:32 -0300
commitf89641907f8b45941f5e67891936ee8050a3ef92 (patch)
treea292e88719ad488fe75a7c2f3fe1e49d277f0c70 /editor/plugins/texture_editor_plugin.cpp
parent41918f328a96f8ef27587c016ca047f8d31f933e (diff)
downloadgodot-f89641907f8b45941f5e67891936ee8050a3ef92.tar.gz
godot-f89641907f8b45941f5e67891936ee8050a3ef92.tar.zst
godot-f89641907f8b45941f5e67891936ee8050a3ef92.zip
Diffstat (limited to 'editor/plugins/texture_editor_plugin.cpp')
-rw-r--r--editor/plugins/texture_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/texture_editor_plugin.cpp b/editor/plugins/texture_editor_plugin.cpp
index 3b705aae2..676e50d61 100644
--- a/editor/plugins/texture_editor_plugin.cpp
+++ b/editor/plugins/texture_editor_plugin.cpp
@@ -71,6 +71,8 @@ void TextureEditor::_notification(int p_what) {
String format;
if (texture->cast_to<ImageTexture>()) {
format = Image::get_format_name(texture->cast_to<ImageTexture>()->get_format());
+ } else if (texture->cast_to<StreamTexture>()) {
+ format = Image::get_format_name(texture->cast_to<StreamTexture>()->get_format());
} else {
format = texture->get_class();
}