Remove unneeded mjvScene argument from mjv_moveCamera.
PiperOrigin-RevId: 948204736 Change-Id: Ic9b116ce439b3153764af67c449a824aec1994dc
This commit is contained in:
committed by
Copybara-Service
parent
6c78c8664e
commit
fa36015bae
+2
-2
@@ -89,14 +89,14 @@ void mouse_move(GLFWwindow* window, double xpos, double ypos) {
|
||||
}
|
||||
|
||||
// move camera
|
||||
mjv_moveCamera(m, action, dx/height, dy/height, &scn, &cam);
|
||||
mjv_moveCamera(m, action, dx/height, dy/height, &cam);
|
||||
}
|
||||
|
||||
|
||||
// scroll callback
|
||||
void scroll(GLFWwindow* window, double xoffset, double yoffset) {
|
||||
// emulate vertical mouse motion = 5% of window height
|
||||
mjv_moveCamera(m, mjMOUSE_ZOOM, 0, -0.05*yoffset, &scn, &cam);
|
||||
mjv_moveCamera(m, mjMOUSE_ZOOM, 0, -0.05*yoffset, &cam);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user