[qt6] Viewer3D: Reset the default render mode to "Textured"

This commit is contained in:
Candice Bentéjac 2024-10-11 15:58:08 +02:00
parent 5953ed5767
commit b884fc4e6b
4 changed files with 6 additions and 6 deletions

View file

@ -10,6 +10,6 @@ DepthMapEntity {
pointSize: Viewer3DSettings.pointSize * (Viewer3DSettings.fixedPointSize ? 1.0 : 0.001) pointSize: Viewer3DSettings.pointSize * (Viewer3DSettings.fixedPointSize ? 1.0 : 0.001)
// Map render modes to custom visualization modes // Map render modes to custom visualization modes
displayMode: Viewer3DSettings.renderMode == 0 ? DepthMapEntity.Points : DepthMapEntity.Triangles displayMode: Viewer3DSettings.renderMode == 1 ? DepthMapEntity.Points : DepthMapEntity.Triangles
displayColor: Viewer3DSettings.renderMode == 1 displayColor: Viewer3DSettings.renderMode == 2
} }

View file

@ -14,7 +14,7 @@ FloatingPane {
implicitWidth: 200 implicitWidth: 200
property int renderMode: 1 property int renderMode: 2
property Grid3D grid: null property Grid3D grid: null
property MediaLibrary mediaLibrary property MediaLibrary mediaLibrary
property Camera camera property Camera camera

View file

@ -15,7 +15,7 @@ import Utils 1.0
FocusScope { FocusScope {
id: root id: root
property int renderMode: 1 property int renderMode: 2
readonly property alias library: mediaLibrary readonly property alias library: mediaLibrary
readonly property alias mainCamera: mainCamera readonly property alias mainCamera: mainCamera
@ -283,7 +283,7 @@ FocusScope {
} }
FloatingPane { FloatingPane {
visible: Viewer3DSettings.renderMode == 2 visible: Viewer3DSettings.renderMode == 3
anchors.bottom: renderModesPanel.top anchors.bottom: renderModesPanel.top
GridLayout { GridLayout {
columns: 2 columns: 2

View file

@ -35,7 +35,7 @@ Item {
{"name": "Spherical Harmonics", "icon": MaterialIcons.brightness_7} {"name": "Spherical Harmonics", "icon": MaterialIcons.brightness_7}
] ]
// Current render mode // Current render mode
property int renderMode: 1 property int renderMode: 2
// Spherical Harmonics file // Spherical Harmonics file
property string shlFile: "" property string shlFile: ""