Skip to content

Commit 10e702f

Browse files
FIX: Added CAMERA_CUSTOM check in UpdateCamera(Camera *camera, int mode) (#3938)
Signed-off-by: Tomas Fabrizio Orsi <torsi@fi.uba.ar>
1 parent e47ebec commit 10e702f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rcamera.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ void UpdateCamera(Camera *camera, int mode)
444444
bool lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
445445
bool rotateUp = false;
446446

447-
if (mode == CAMERA_ORBITAL)
447+
if (mode == CAMERA_CUSTOM) {}
448+
else if (mode == CAMERA_ORBITAL)
448449
{
449450
// Orbital can just orbit
450451
Matrix rotation = MatrixRotate(GetCameraUp(camera), CAMERA_ORBITAL_SPEED*GetFrameTime());

0 commit comments

Comments
 (0)