diff --git a/panda/src/mathutil/look_at.cxx b/panda/src/mathutil/look_at.cxx index ff7df16b80..ad21fe2450 100644 --- a/panda/src/mathutil/look_at.cxx +++ b/panda/src/mathutil/look_at.cxx @@ -56,6 +56,10 @@ template static void _heads_up(LMatrix3 &mat, const LVector3 &fwd, const LVector3 &up, CoordinateSystem cs) { + if (cs == CS_default) { + cs = default_coordinate_system; + } + if (cs == CS_zup_right || cs == CS_zup_left) { // Z-up.