mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Monitor Tab - Camera button toggles
Contributes to CL-1049
This commit is contained in:
parent
0a01e7c25b
commit
dccc95f817
1 changed files with 8 additions and 1 deletions
|
@ -652,7 +652,14 @@ Component
|
|||
hoverEnabled: true
|
||||
onClicked:
|
||||
{
|
||||
OutputDevice.setActiveCamera(modelData.camera)
|
||||
if (OutputDevice.activeCamera !== null)
|
||||
{
|
||||
OutputDevice.setActiveCamera(null)
|
||||
}
|
||||
else
|
||||
{
|
||||
OutputDevice.setActiveCamera(modelData.camera)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue