You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Changed reload logic to auto-hard-reload scripts on save. It's simpler to use and also fixes #4756
This commit is contained in:
@@ -32,7 +32,7 @@ ScriptLanguage *ScriptServer::_languages[MAX_LANGUAGES];
|
||||
int ScriptServer::_language_count=0;
|
||||
|
||||
bool ScriptServer::scripting_enabled=true;
|
||||
|
||||
bool ScriptServer::reload_scripts_on_save=false;
|
||||
|
||||
void Script::_notification( int p_what) {
|
||||
|
||||
@@ -92,6 +92,16 @@ void ScriptServer::init_languages() {
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptServer::set_reload_scripts_on_save(bool p_enable) {
|
||||
|
||||
reload_scripts_on_save=p_enable;
|
||||
}
|
||||
|
||||
bool ScriptServer::is_reload_scripts_on_save_enabled() {
|
||||
|
||||
return reload_scripts_on_save;
|
||||
}
|
||||
|
||||
void ScriptInstance::get_property_state(List<Pair<StringName, Variant> > &state) {
|
||||
|
||||
List<PropertyInfo> pinfo;
|
||||
|
||||
Reference in New Issue
Block a user