Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Removing function from AnimatedEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
DolicaAkelloEgwel committed Apr 9, 2019
1 parent 7c77515 commit 1bebc76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions resources/Qtmodels/AnimatedEntity.qml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ Entity {
viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 )
}

function updateView() {
console.log(camera.position)
camera.viewAll()
}

FirstPersonCameraController { camera: camera
linearSpeed: 20}

Expand Down
3 changes: 1 addition & 2 deletions resources/Qtmodels/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ ApplicationWindow {
target: components
onModel_updated: {
jsonConnector.request_filewriter_json(components)
console.log("I just updated.")
instrumentEntity.updateView()
instrumentEntity.camera.viewAll()
}
enabled: jsonMode == "liveFW"
}
Expand Down

0 comments on commit 1bebc76

Please sign in to comment.