File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ void ModelAsset::loadGPUPart() {
162
162
temporaryEmbeddedTextures.reset ();
163
163
164
164
for (auto material = materialMap.begin (); material != materialMap.end (); ++material) {
165
+ material->second ->afterLoad (assetManager);// Since this depends on the embedded textures, needs to be done as part of GPU load
165
166
material->second ->loadGPUSide (assetManager);
166
167
assetManager->getGraphicsWrapper ()->setMaterial (*material->second );
167
168
}
Original file line number Diff line number Diff line change @@ -253,7 +253,6 @@ class ModelAsset : public Asset {
253
253
if (meshMaterialToUpdateIt != meshMaterialMap.end ()) {
254
254
meshMaterialMap[meshMaterialToUpdateIt->first ] = materialPair.second ;
255
255
}
256
- materialPair.second ->afterLoad (assetManager);
257
256
}
258
257
buildPhysicsMeshes ();
259
258
}
You can’t perform that action at this time.
0 commit comments