jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.66k stars 515 forks source link

Load from remote URL gives an error, no code is loaded #182

Closed nataliefreed closed 7 years ago

nataliefreed commented 8 years ago

When I try to load an OpenJSCAD file from a remote URL I get the following error: "The JSCAD script must contain a function main() which returns one or more CSG or CAG solids."

The same issue occurs with this example provided in the user guide, and all other examples I've tried: http://openjscad.org/#http://openjscad.org/examples/slices/tor.jscad

I've tried this in Chrome, Safari, and Firefox on Max OS X.

This may be the same issue as #130 ?

Thank you.

z3dev commented 8 years ago

@nataliefreed Thanks for reporting this. I'll try some examples using the latest DEV release, and let you know.

nataliefreed commented 8 years ago

I'm not sure what's changed, but it's working for me now.

z3dev commented 8 years ago

@nataliefreed If the current script is saved locally (CTRL-S) then remote URLs are not working. You may have hit this issue. I'm working on a fix to this issue now.

nataliefreed commented 8 years ago

Aha! I think that is what I ran into. Thank you for working on it!

z3dev commented 7 years ago

Closing as Release 0.5.2 provided the fix.