diff --git a/editor/plugins/editor_preview_plugins.cpp b/editor/plugins/editor_preview_plugins.cpp index f2b38536b5ce..7ac924571d36 100644 --- a/editor/plugins/editor_preview_plugins.cpp +++ b/editor/plugins/editor_preview_plugins.cpp @@ -97,6 +97,10 @@ Ref EditorTexturePreviewPlugin::generate(const Ref &p_from, return Ref(); } + if (!atex->get_region().has_area()) { + return Ref(); + } + img = atlas->get_region(atex->get_region()); } else { Ref tex = p_from;