1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-25 01:53:12 +01:00

add more check

This commit is contained in:
Justin Lin 2019-05-13 09:13:31 +08:00
parent 49be3b9b9f
commit ff8d36336e

View File

@ -78,7 +78,7 @@ function _xyz_rotation(a) =
_m_zRotation(ang[2]) * _m_yRotation(ang[1]) * _m_xRotation(ang[0]); _m_zRotation(ang[2]) * _m_yRotation(ang[1]) * _m_xRotation(ang[0]);
function m_rotation(a, v) = function m_rotation(a, v) =
a == 0 ? [ (a == 0 || a == [0, 0, 0] || a == [0] || a == [0, 0]) ? [
[1, 0, 0, 0], [1, 0, 0, 0],
[0, 1, 0, 0], [0, 1, 0, 0],
[0, 0, 1, 0], [0, 0, 1, 0],