Skip to content

Commit d0f722a

Browse files
The direction of the "aim at camera" is fixed to aim toward the camera.
Issue #230.
1 parent 682c2b1 commit d0f722a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • python/mmSolver/tools/raycastmarker

python/mmSolver/tools/raycastmarker/lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ def _do_raycast(node_list, mesh_nodes, frame_range,
201201
mat = None
202202
if bundle_rotate_mode == const.BUNDLE_ROTATE_MODE_AIM_AT_CAMERA_VALUE:
203203
mat = _create_look_at_matrix(
204-
direction[0],
205-
direction[1],
206-
direction[2])
204+
-direction[0],
205+
-direction[1],
206+
-direction[2])
207207
elif bundle_rotate_mode == const.BUNDLE_ROTATE_MODE_MESH_NORMAL_VALUE:
208208
mat = _create_look_at_matrix(
209209
hit_normal[0],

0 commit comments

Comments
 (0)