You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +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:
@@ -1791,8 +1791,9 @@ Error VariantParser::parse(Stream *p_stream, Variant& r_ret, String &r_err_str,
|
||||
|
||||
static String rtosfix(double p_value) {
|
||||
|
||||
|
||||
if (p_value==0.0)
|
||||
return "0"; //avoid negative zero being written, which may annoy git, svn, etc. for changes when they don't exist.
|
||||
return "0"; //avoid negative zero (-0) being written, which may annoy git, svn, etc. for changes when they don't exist.
|
||||
else
|
||||
return rtoss(p_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user