Don't initialize TTS in server builds after all.

This commit is contained in:
Nolan Darilek 2020-01-10 15:06:13 -06:00
parent e2f81c32dc
commit a7b8ecb775
3 changed files with 2 additions and 4 deletions

2
TTS.gd
View File

@ -6,7 +6,7 @@ var TTS
var tts = null
func _ready():
if OS.has_feature("JavaScript"):
if OS.get_name() == "Server" or OS.has_feature("JavaScript"):
return
elif Engine.has_singleton("AndroidTTS"):
tts = Engine.get_singleton("AndroidTTS")

View File

@ -1,6 +1,5 @@
[entry]
Server.64="res://addons/godot-tts/target/debug/libgodot_tts.so"
Windows.64="res://addons/godot-tts/target/debug/godot_tts.dll"
X11.64="res://addons/godot-tts/target/debug/libgodot_tts.so"

View File

@ -1,6 +1,5 @@
[entry]
Server.64="res://addons/godot-tts/target/release/libgodot_tts.so"
Windows.64="res://addons/godot-tts/target/release/godot_tts.dll"
X11.64="res://addons/godot-tts/target/release/libgodot_tts.so"