Skip to content

Commit baed148

Browse files
jcelerierclaude
andcommitted
threedim: adapt ModelDisplay to Pass::p.pipeline engine API
The engine rework moved the pipeline pointer to Pass::p.pipeline; ModelDisplayNode still used the old Pass::pipeline (6 sites) and failed to compile against the reworked engine. This is the engine-API blast radius and must ride with gfx-scene so score_plugin_threedim builds (and so gfx-scene can merge without breaking master's threedim plugin). The fuller ModelDisplay refresh remains on split/threedim. PR #2050. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 59f9290 commit baed148

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/plugins/score-plugin-threedim/Threedim/ModelDisplay/ModelDisplayNode.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -908,24 +908,24 @@ class ModelDisplayNode::Renderer : public GenericNodeRenderer
908908

909909
for(auto& [e, pass] : this->m_p)
910910
{
911-
pass.pipeline->destroy();
911+
pass.p.pipeline->destroy();
912912

913-
pass.pipeline->setTargetBlends({blend});
913+
pass.p.pipeline->setTargetBlends({blend});
914914

915915
switch(m_draw_mode)
916916
{
917917
case 0:
918-
pass.pipeline->setTopology(QRhiGraphicsPipeline::Triangles);
918+
pass.p.pipeline->setTopology(QRhiGraphicsPipeline::Triangles);
919919
break;
920920
case 1:
921-
pass.pipeline->setTopology(QRhiGraphicsPipeline::Points);
921+
pass.p.pipeline->setTopology(QRhiGraphicsPipeline::Points);
922922
break;
923923
case 2:
924-
pass.pipeline->setTopology(QRhiGraphicsPipeline::Lines);
924+
pass.p.pipeline->setTopology(QRhiGraphicsPipeline::Lines);
925925
break;
926926
}
927927

928-
pass.pipeline->create();
928+
pass.p.pipeline->create();
929929
}
930930
}
931931

0 commit comments

Comments
 (0)