mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-22 09:46:42 +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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
EditorFileSystem *get_editor_file_system() {
|
EditorFileSystem *get_editor_file_system() {
|
||||||
#ifdef SPINE_GODOT_EXTENSION
|
#ifdef SPINE_GODOT_EXTENSION
|
||||||
EditorInterface *editor_interface = EditorInterface::get_singleton();
|
EditorInterface *editor_interface = EditorInterface::get_singleton();
|
||||||
@ -214,6 +215,7 @@ EditorFileSystem *get_editor_file_system() {
|
|||||||
return EditorFileSystem::get_singleton();
|
return EditorFileSystem::get_singleton();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
SpineSkeletonDataResource::SpineSkeletonDataResource()
|
SpineSkeletonDataResource::SpineSkeletonDataResource()
|
||||||
: default_mix(0), skeleton_data(nullptr), animation_state_data(nullptr) {
|
: default_mix(0), skeleton_data(nullptr), animation_state_data(nullptr) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user