Skip to content

Commit bfcbb22

Browse files
committed
Viewer3D: Fix Resource Paths
1 parent 03b8b34 commit bfcbb22

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/FlightDisplay/FlyViewToolStripActionList.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ToolStripActionList {
2525
id: view3DIcon
2626
visible: _viewer3DEnabled
2727
text: qsTr("3D View")
28-
iconSource: "/qml/Viewer3D/City3DMapIcon.svg"
28+
iconSource: "/qml/QGroundControl/Viewer3D/City3DMapIcon.svg"
2929
onTriggered:{
3030
if(_is3DViewOpen === false){
3131
viewer3DWindow.open()
@@ -39,7 +39,7 @@ ToolStripActionList {
3939
view3DIcon.iconSource = "/qmlimages/PaperPlane.svg"
4040
text= qsTr("Fly")
4141
}else{
42-
iconSource = "/qml/Viewer3D/City3DMapIcon.svg"
42+
iconSource = "/qml/QGroundControl/Viewer3D/City3DMapIcon.svg"
4343
text = qsTr("3D View")
4444
}
4545
}

src/Viewer3D/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE QGC_VIEWER3D)
3636

3737
qt_add_library(Viewer3DModule STATIC)
3838

39-
set_source_files_properties(Images/city_3d_map_icon.svg PROPERTIES QT_RESOURCE_ALIAS Viewer3D/City3DMapIcon.svg)
39+
set_source_files_properties(Images/city_3d_map_icon.svg PROPERTIES QT_RESOURCE_ALIAS City3DMapIcon.svg)
4040
set_source_files_properties(Shaders/earthMaterial.frag PROPERTIES QT_RESOURCE_ALIAS ShaderFragment/earthMaterial.frag)
4141
set_source_files_properties(Shaders/earthMaterial.vert PROPERTIES QT_RESOURCE_ALIAS ShaderVertex/earthMaterial.vert)
4242

src/Viewer3D/Viewer3DQml/Models3D/Viewer3DModel.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ View3D {
159159
}
160160

161161
materials: CustomMaterial {
162-
vertexShader: "/qml/ShaderVertex/earthMaterial.vert"
163-
fragmentShader: "/qml/ShaderFragment/earthMaterial.frag"
162+
vertexShader: "/qml/QGroundControl/Viewer3D/ShaderVertex/earthMaterial.vert"
163+
fragmentShader: "/qml/QGroundControl/Viewer3D/ShaderFragment/earthMaterial.frag"
164164
property TextureInput someTextureMap: TextureInput {
165165
texture: Texture {
166166
textureData: _terrainTextureManager

0 commit comments

Comments
 (0)