Skip to content

Commit

Permalink
Support absent scene node names
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Jan 30, 2024
1 parent 6a2eb4d commit 5065122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misc/irrlichtmt_tag.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0mt14
1.9.0mt15
2 changes: 1 addition & 1 deletion src/client/shadows/dynamicshadowsrender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void ShadowRenderer::addNodeToShadowList(
{
m_shadow_node_array.emplace_back(node, shadowMode);
// node should never be ClientMap
assert(strcmp(node->getName(), "ClientMap") != 0);
assert(!node->getName().has_value() || *node->getName() != "ClientMap");

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

0 comments on commit 5065122

Please sign in to comment.