[x3d-public] exception on this file, set_translation field
John Carlson
yottzumm at gmail.com
Mon Jun 6 16:39:58 PDT 2016
Thanks,
That got me closer. Here’s the correct patch:
-" if (typeof scalevel === 'undefined') {",
-"\t\tscalevel = [0, 0, 0];",
+" if (typeof scalvel === 'undefined') {",
+"\t\tscalvel = [0, 0, 0];”,
scale is defined as a field, so it doesn’t need a var, does it?
John
> On Jun 6, 2016, at 5:50 PM, doug sanden <highaspirations at hotmail.com> wrote:
>
> J,
> Octaga has good line number output in its console:
> WARNING: ECMAParser: Error near line 56 in file C:\Users/higha_000/Downloads/cobweb.x3d : syntax error, unexpected ';', expecting ')'
> WARNING: scalevel is undefined (in script starting at line 22 in C:\Users/higha_000/Downloads/cobweb.x3d )
>
> if (typeof scale === 'undefined') {
> scale = [1, 1, 1];
> should probably be
> var scale = [1, 1, 1];
> -D
> ________________________________________
> From: x3d-public <x3d-public-bounces at web3d.org> on behalf of John Carlson <yottzumm at gmail.com>
> Sent: June 6, 2016 3:16 PM
> To: X3D Graphics public mailing list
> Subject: Re: [x3d-public] exception on this file, set_translation field
>
> This file works in Instant Player, but not Xj3D.
>
> See attached.
>
> John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160606/8e6ffca7/attachment.html>
More information about the x3d-public
mailing list