Skip to content

Commit

Permalink
new resource scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
reinago committed Feb 24, 2023
1 parent 95c1c8f commit 6c2b789
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ cmake-build-*/
/examples/
/lib/
/share/
install/

# Utils
utils/MMPLD/mmpld.bat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ class AnimationRenderer : public mmstd_gl::Renderer3DModuleGL {
return true;
}

std::vector<std::string> requested_lifetime_resources() override {
std::vector<std::string> resources = Renderer3DModuleGL::requested_lifetime_resources();
resources.emplace_back(frontend_resources::MegaMolGraph_Req_Name);
resources.emplace_back(frontend_resources::AnimationEditorData_Req_Name);
return resources;
static void requested_lifetime_resources(frontend_resources::ResourceRequest& req) {
Renderer3DModuleGL::requested_lifetime_resources(req);
req.require<core::MegaMolGraph>();
req.require<frontend_resources::AnimationEditorData>();
}

/**
Expand Down

0 comments on commit 6c2b789

Please sign in to comment.