Skip to content

Commit 9b862bc

Browse files
Tom O'ReillyTom O'Reilly
authored andcommitted
added lightingEnabled to TopoDataItem.setLight()
1 parent f8ce864 commit 9b862bc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/qt-mbgrdviz/main.qml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ Window {
276276
anchors.fill: parent
277277
anchors.margins: 10
278278

279+
lightsEnabled.onCheckedChanged: {
280+
console.log('Lights checked: ', settings3D.checked)
281+
updateLighting()
282+
}
283+
279284
intensity.onMoved: {
280285
updateLighting()
281286
}
@@ -311,7 +316,8 @@ Window {
311316
console.log('settings3dDialog=', settings3dDialog)
312317
console.log('settings3D=', settings3D)
313318

314-
topoDataItem.setLight(settings3D.intensity.value,
319+
topoDataItem.setLight(settings3D.lightsEnabled.checked,
320+
settings3D.intensity.value,
315321
settings3D.lightX.value,
316322
settings3D.lightY.value, settings3D.lightZ.value)
317323
}

0 commit comments

Comments
 (0)