Skip to content

Commit

Permalink
Support absent scene node names (#14330)
Browse files Browse the repository at this point in the history
Contains a hack to support IrrlichtMT revision 14 for now (until we release revision 15)
  • Loading branch information
appgurueu committed Feb 18, 2024
1 parent 1e316a9 commit 4acbd59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/shadows/dynamicshadowsrender.cpp
Expand Up @@ -183,8 +183,12 @@ void ShadowRenderer::addNodeToShadowList(
{
m_shadow_node_array.emplace_back(node, shadowMode);
// node should never be ClientMap
#if IRRLICHT_VERSION_MT_REVISION >= 15
assert(!node->getName().has_value() || *node->getName() != "ClientMap");
#else
// TODO: Remove this as soon as we require 1.9.0mt15
assert(strcmp(node->getName(), "ClientMap") != 0);

#endif
node->forEachMaterial([this] (auto &mat) {
mat.setTexture(TEXTURE_LAYER_SHADOW, shadowMapTextureFinal);
});
Expand Down

0 comments on commit 4acbd59

Please sign in to comment.