mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[godot] Closees #2530, don't use preview skin/animation at runtime
This commit is contained in:
parent
0615878a80
commit
25d55851e9
@ -610,6 +610,7 @@ bool SpineSprite::_get(const StringName &property, Variant &value) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void update_preview_animation(SpineSprite *sprite, const String &skin, const String &animation, bool frame, float time) {
|
static void update_preview_animation(SpineSprite *sprite, const String &skin, const String &animation, bool frame, float time) {
|
||||||
|
if (!Engine::get_singleton()->is_editor_hint()) return;
|
||||||
if (!sprite->get_skeleton().is_valid()) return;
|
if (!sprite->get_skeleton().is_valid()) return;
|
||||||
|
|
||||||
if (EMPTY(skin) || skin == "Default") {
|
if (EMPTY(skin) || skin == "Default") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user