mirror of
https://github.com/Relintai/texture_packer.git
synced 2024-11-12 10:15:16 +01:00
Added missing editor_hint check.
This commit is contained in:
parent
63b908afb6
commit
c9cef93510
@ -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);
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user