Jelajahi Sumber

this failed in msvc, didn't in linux and mingw

Ariel Manzur 9 tahun lalu
induk
melakukan
a5fe71a0e9

+ 1 - 4
tools/editor/editor_import_export.cpp

@@ -1128,10 +1128,7 @@ Error EditorExportPlatform::save_zip(const String& p_path, bool p_make_bundles)
 
 	zipClose(zip,NULL);
 
-	if (err)
-		return err;
-
-
+	return err;
 }
 
 Error EditorExportPlatform::save_pack(FileAccess *dst,bool p_make_bundles, int p_alignment) {

+ 1 - 1
tools/editor/plugins/script_editor_plugin.cpp

@@ -1773,7 +1773,7 @@ void ScriptEditor::_update_script_colors() {
 		if (h>hist_size) {
 			continue;
 		}
-		float v = Math::ease((edit_pass-pass)/float_t(hist_size),0.4);
+		float v = Math::ease((edit_pass-pass)/float(hist_size),0.4);
 
 
 		script_list->set_item_custom_bg_color(i,hot_color.linear_interpolate(cold_color,v));