mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[godot] Disable editor FS access in template builds.
This commit is contained in:
parent
42fea00bb0
commit
e0c4cfffec
@ -203,6 +203,7 @@ void SpineSkeletonDataResource::_bind_methods() {
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
EditorFileSystem *get_editor_file_system() {
|
||||
#ifdef SPINE_GODOT_EXTENSION
|
||||
EditorInterface *editor_interface = EditorInterface::get_singleton();
|
||||
@ -214,6 +215,7 @@ EditorFileSystem *get_editor_file_system() {
|
||||
return EditorFileSystem::get_singleton();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
SpineSkeletonDataResource::SpineSkeletonDataResource()
|
||||
: default_mix(0), skeleton_data(nullptr), animation_state_data(nullptr) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user