Browse Source

FIX: Added CAMERA_CUSTOM check in `UpdateCamera(Camera *camera, int mode)` (#3938)

Signed-off-by: Tomas Fabrizio Orsi <torsi@fi.uba.ar>
pull/3942/head
Tomas Fabrizio Orsi 9 months ago
committed by GitHub
parent
commit
10e702facd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/rcamera.h

+ 2
- 1
src/rcamera.h View File

@ -444,7 +444,8 @@ void UpdateCamera(Camera *camera, int mode)
bool lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
bool rotateUp = false;
if (mode == CAMERA_ORBITAL)
if (mode == CAMERA_CUSTOM) {}
else if (mode == CAMERA_ORBITAL)
{
// Orbital can just orbit
Matrix rotation = MatrixRotate(GetCameraUp(camera), CAMERA_ORBITAL_SPEED*GetFrameTime());

Loading…
Cancel
Save