diff options
author | Miikka Heikkinen <[email protected]> | 2024-05-23 12:34:57 +0300 |
---|---|---|
committer | Miikka Heikkinen <[email protected]> | 2024-05-23 10:48:44 +0000 |
commit | 8bfe8056459d264cf2b83de0269f7034eb2f6b2b (patch) | |
tree | 34e670b4ae6d8a9199c401a5b8ac73982b18de65 /src/libs/qmlpuppetcommunication | |
parent | d3452545796bdf4ee87daf5b24b42ecf7d6036af (diff) |
QmlDesigner: Allow rotation of 3D import preview
3D import preview can now be rotated using left mouse button and
dragging the preview image. This causes camera to orbit around the
previewed model, similar to rotation to 3D edit view orbit camera.
Close/Cancel button logic was also improved.
Fixes: QDS-12795
Change-Id: I0c7d1ad28f8fe779b9bedc4bf76be704078d91a6
Reviewed-by: Mahmoud Badri <[email protected]>
Diffstat (limited to 'src/libs/qmlpuppetcommunication')
-rw-r--r-- | src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h b/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h index 06df0f79754..206fb760956 100644 --- a/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h +++ b/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h @@ -56,7 +56,8 @@ enum class View3DActionType { EditCameraMove, EditCameraStopAllMoves, SetLastSceneEnvData, - Import3dUpdatePreviewImage + Import3dUpdatePreviewImage, + Import3dRotatePreviewModel }; constexpr bool isNanotraceEnabled() |