MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / load

Method load

src/slg/scene/extmeshcacheserialize.cpp:31–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29BOOST_CLASS_EXPORT_IMPLEMENT(slg::ExtMeshCache)
30
31template<class Archive> void ExtMeshCache::load(Archive &ar, const u_int version) {
32 // Load the size
33 u_int size;
34 ar & size;
35
36 for (u_int i = 0; i < size; ++i) {
37 // Load the mesh
38 luxrays::ExtMesh *m;
39 ar & m;
40 SDL_LOG("Loading serialized mesh: " << m->GetName());
41
42 meshes.DefineObj(m);
43 }
44
45 ar & deleteMeshData;
46}
47
48template<class Archive> void ExtMeshCache::save(Archive &ar, const u_int version) const {
49 // Save the size

Callers

nothing calls this directly

Calls 1

DefineObjMethod · 0.80

Tested by

no test coverage detected