mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Deprecate :; in $if etc.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user