Skip to content

Commit 9d2e859

Browse files
fix: camera ecs script zoom reset
1 parent 2e60033 commit 9d2e859

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/pl_script_camera.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pl_script_run(plComponentLibrary* ptLibrary, plEntity tEntity)
8686
}
8787
else if(gptIO->is_mouse_released(PL_MOUSE_BUTTON_RIGHT))
8888
{
89-
ptCamera->fYFov = gfOriginalFOV;
89+
gptCamera->set_y_fov(ptCamera, gfOriginalFOV);
9090
}
9191

9292
if(gptIO->get_mouse_wheel() > 0.0f)

0 commit comments

Comments
 (0)