Deprecate :; in $if etc.

This commit is contained in:
Christoffer Lerno
2023-03-20 01:03:54 +01:00
parent cc87c77af3
commit 5ee0d52ff1
94 changed files with 680 additions and 655 deletions

View File

@@ -216,11 +216,11 @@ return v;
var view_proj = m1.mul(m2);
var invert = view_proj.invert();
// Create quaternion from source point
$if ($typeof(v[0]).typeid == float.typeid):
$if ($typeof(v[0]).typeid == float.typeid)
Quaternionf quat = { v.x, v.y, v.z, 1 };
$else:
$else
Quaternion quat = { v.x, v.y, v.z, 1 };
$endif;
$endif
// Multiply quat point by unproject matrix
var qtransformed = quat.transform(invert);