From e3f1e27c68bb6d977f110885be21be67e9dbe672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Tue, 17 Dec 2024 19:05:03 +0100 Subject: [PATCH] [Viewer3D] MediaLoader: Bind `fixedPointSize` for the SfMLoader The `fixedPointSize` parameter was used to determine whether the point size was fixed or programmable from the QML (using a `PointSize` render state). With Qt6, this render state is not correctly handled by the RHI and we need to set directly within the shader whether the point size is fixed or not, hence the binding. --- meshroom/ui/qml/Viewer3D/MediaLoader.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/meshroom/ui/qml/Viewer3D/MediaLoader.qml b/meshroom/ui/qml/Viewer3D/MediaLoader.qml index fba782e596..98f95bad31 100644 --- a/meshroom/ui/qml/Viewer3D/MediaLoader.qml +++ b/meshroom/ui/qml/Viewer3D/MediaLoader.qml @@ -108,6 +108,7 @@ import Utils 1.0 Component.onCompleted: { var obj = Viewer3DSettings.sfmDataLoaderComp.createObject(sfmDataLoaderEntity, { "source": source, + "fixedPointSize": Qt.binding(function() { return Viewer3DSettings.fixedPointSize }), "pointSize": Qt.binding(function() { return 0.01 * Viewer3DSettings.pointSize }), "locatorScale": Qt.binding(function() { return Viewer3DSettings.cameraScale }), "cameraPickingEnabled": Qt.binding(function() { return root.enabled && root.cameraPickingEnabled }),