Skip to content

Commit 49b9aae

Browse files
committed
Correct radians function invocation, get rid of compile error
1 parent 4dc7ba8 commit 49b9aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/matrix4x3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ namespace core
162162
//! Make a rotation matrix from Euler angles. The 4th row and column are unmodified.
163163
inline matrix4x3& setRotationDegrees( const vector3df& rotation )
164164
{
165-
return setRotationRadians( radians<vector3df>(rotation) );
165+
return setRotationRadians(vector3df(radians(rotation.X), radians(rotation.Y), radians(rotation.Z)));
166166
}
167167

168168
//! Returns the rotation, as set by setRotation().

0 commit comments

Comments
 (0)