Ignore disabled nodes
This commit is contained in:
@@ -38,6 +38,7 @@ namespace OpenVulkano::Vulkan
|
|||||||
|
|
||||||
for(Node* node : instance->GetNodes())
|
for(Node* node : instance->GetNodes())
|
||||||
{
|
{
|
||||||
|
if (!node->IsEnabled()) [[unlikely]] continue;
|
||||||
drawContext->EncodeNode(node);
|
drawContext->EncodeNode(node);
|
||||||
renderGeo->RecordDraw(drawContext->commandBuffer);
|
renderGeo->RecordDraw(drawContext->commandBuffer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user