Skip to content
Snippets Groups Projects
Commit 564ac394 authored by Trevor Hollmann's avatar Trevor Hollmann
Browse files

[#79] Change order of function arguments for loadMesh.

For consistency the output arguments should always be the last
arguments of a function.
parent a18ad02b
Branches
Tags
1 merge request!69Resolve "Rework Asset Loader API"
......@@ -234,7 +234,7 @@ int probeScene(const std::filesystem::path &path, Scene &scene);
/**
* TODO document
*/
int loadMesh(const std::filesystem::path &path, Scene &scene, const std::string &name);
int loadMesh(const std::filesystem::path &path, const std::string &name, Scene &scene);
struct TextureData {
......
......@@ -748,7 +748,7 @@ int probeScene(const std::filesystem::path& path, Scene& scene) {
}
int loadMesh(const std::filesystem::path &path, Scene &scene, const std::string &name) {
int loadMesh(const std::filesystem::path &path, const std::string &name, Scene &scene) {
fx::gltf::Document sceneObjects;
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment