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

Method UpdateMaterialReferences

src/slg/scene/sceneobject.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void SceneObject::UpdateMaterialReferences(const Material *oldMat, const Material *newMat) {
43 if (mat == oldMat)
44 mat = newMat;
45}
46
47bool SceneObject::UpdateMeshReference(const luxrays::ExtMesh *oldMesh, luxrays::ExtMesh *newMesh) {
48 if (mesh == oldMesh) {

Callers 2

BOOST_FOREACHFunction · 0.45
BOOST_FOREACHFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected