You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Fix various warnings
The warnings fixed were about things like unused variables, misleading indentation, missing default cases in switches and better grouping of conditions in if statements.
This commit is contained in:
@@ -147,7 +147,7 @@ public:
|
||||
|
||||
dst = dst.plus_file(bitmasks[i].get_file().basename() + ".pbm");
|
||||
|
||||
Error err = plugin->import(dst, imd);
|
||||
plugin->import(dst, imd);
|
||||
}
|
||||
|
||||
hide();
|
||||
|
||||
@@ -298,7 +298,7 @@ public:
|
||||
|
||||
dst = dst.plus_file(samples[i].get_file().basename()+".smp");
|
||||
|
||||
Error err = plugin->import(dst,imd);
|
||||
plugin->import(dst,imd);
|
||||
}
|
||||
|
||||
hide();
|
||||
|
||||
@@ -1447,6 +1447,7 @@ void EditorSceneImportPlugin::_find_resources(const Variant& p_var, Map<Ref<Imag
|
||||
}
|
||||
|
||||
} break;
|
||||
default: {}
|
||||
|
||||
}
|
||||
|
||||
@@ -2325,7 +2326,7 @@ void EditorSceneImportPlugin::_filter_tracks(Node *scene, const String& p_text)
|
||||
|
||||
if (!scene->has_node(String("AnimationPlayer")))
|
||||
return;
|
||||
Node* n = scene->get_node(String("AnimationPlayer"));
|
||||
Node* n = scene->get_node(String("AnimationPlayer"));
|
||||
ERR_FAIL_COND(!n);
|
||||
AnimationPlayer *anim = n->cast_to<AnimationPlayer>();
|
||||
ERR_FAIL_COND(!anim);
|
||||
@@ -2443,7 +2444,7 @@ void EditorSceneImportPlugin::_optimize_animations(Node *scene, float p_max_lin_
|
||||
|
||||
if (!scene->has_node(String("AnimationPlayer")))
|
||||
return;
|
||||
Node* n = scene->get_node(String("AnimationPlayer"));
|
||||
Node* n = scene->get_node(String("AnimationPlayer"));
|
||||
ERR_FAIL_COND(!n);
|
||||
AnimationPlayer *anim = n->cast_to<AnimationPlayer>();
|
||||
ERR_FAIL_COND(!anim);
|
||||
@@ -2842,7 +2843,7 @@ Error EditorSceneImportPlugin::import2(Node *scene, const String& p_dest_path, c
|
||||
}
|
||||
}
|
||||
|
||||
Error err = EditorTextureImportPlugin::get_singleton()->import(target_path,imd);
|
||||
EditorTextureImportPlugin::get_singleton()->import(target_path,imd);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user