Gui: Initialize SbVec2s point directly in CommandView

This commit is contained in:
tetektoza
2025-09-02 21:33:11 +02:00
parent b780cf923f
commit de8b9f2dbf

View File

@@ -3999,9 +3999,8 @@ void StdCmdClarifySelection::activated(int iMsg)
}
QPoint local = widget->mapFromGlobal(pos);
SbVec2s point;
point[0] = local.x();
point[1] = widget->height() - local.y() - 1;
SbVec2s point(static_cast<short>(local.x()),
static_cast<short>(widget->height() - local.y() - 1));
// Use ray picking to get all objects under cursor
SoRayPickAction pickAction(viewer->getSoRenderManager()->getViewportRegion());