[godot] Closees #2530, don't use preview skin/animation at runtime

This commit is contained in:
Mario Zechner 2024-05-21 11:37:06 +02:00
parent 0615878a80
commit 25d55851e9

View File

@ -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) {
if (!Engine::get_singleton()->is_editor_hint()) return;
if (!sprite->get_skeleton().is_valid()) return;
if (EMPTY(skin) || skin == "Default") {