Skip to content

Commit 8c5d3e5

Browse files
committed
Fix Python/C++ mix-up on "controlling the camera" in tutorial
1 parent 2e6c1e7 commit 8c5d3e5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

introduction/tutorial/controlling-the-camera.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,22 @@ Update your code as follows:
5454
:language: cpp
5555
:linenos:
5656

57-
The procedure ``taskMgr.add()`` tells Panda3D's task manager to call the
58-
procedure ``spinCameraTask()`` every frame. This is a procedure that we have
59-
written to control the camera. As long as the procedure ``spinCameraTask()``
60-
returns the constant ``AsyncTask.DS_cont``, the task manager will continue to
61-
call it every frame.
57+
.. only:: python
58+
59+
The procedure :py:meth:`taskMgr.add()` tells Panda3D's task manager to call
60+
the procedure ``spinCameraTask()`` every frame. This is a procedure that we
61+
have written to control the camera. As long as the procedure
62+
``spinCameraTask()`` returns the constant ``Task.cont``, the task manager
63+
will continue to call it every frame.
6264

6365
.. only:: cpp
6466

67+
The procedure :meth:`taskMgr->add() <.AsyncTaskManager.add>` tells Panda3D's
68+
task manager to call the procedure ``spinCameraTask()`` every frame. This is
69+
a procedure that we have written to control the camera. As long as the
70+
procedure ``spinCameraTask()`` returns the constant ``AsyncTask.DS_cont``,
71+
the task manager will continue to call it every frame.
72+
6573
The object passed to :meth:`taskMgr->add() <.AsyncTaskManager.add>` is an
6674
:class:`.AsyncTask` object. We can use ``GenericAsyncTask`` to wrap a global
6775
function or static method around a task. We can also pass an additional

0 commit comments

Comments
 (0)