fix: finalize particle validation drawable
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled

This commit is contained in:
OpenAI Codex
2026-08-29 19:43:38 +08:00
parent 98f1a85c2d
commit 322be84968
4 changed files with 193 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ void RenderParticleValidationLayer::update(gfx::ShaderRegistry&,
drawable->setIsCustom(true);
drawable->setRenderPass(RenderPass::Translucent);
drawable->addTweaker(std::make_shared<ParticleValidationDrawableTweaker>(getID(), active, getLayerIndex()));
builder->flush(context);
auto drawables = builder->clearDrawables();
group->addDrawable(std::move(drawables.front()));
++stats.drawablesAdded;