Added missing editor_hint check.

This commit is contained in:
Relintai 2019-10-22 01:07:53 +02:00
parent 63b908afb6
commit c9cef93510
2 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,9 @@ void TextureMerger::set_textures(const Vector<Variant> &textures) {
_textures.set(i, texture); _textures.set(i, texture);
} }
if (Engine::get_singleton()->is_editor_hint())
return;
bool texture_added = false; bool texture_added = false;
for (int i = 0; i < _textures.size(); ++i) { for (int i = 0; i < _textures.size(); ++i) {
Ref<Texture> tex = _textures.get(i); Ref<Texture> tex = _textures.get(i);

View File

@ -4,6 +4,7 @@
#include "scene/main/node.h" #include "scene/main/node.h"
#include "core/vector.h" #include "core/vector.h"
#include "core/engine.h"
#include "texture_packer.h" #include "texture_packer.h"