Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown variable center warning in aluminiumProfiles.scad #214

Open
olemis opened this issue Jun 16, 2020 · 2 comments
Open

Unknown variable center warning in aluminiumProfiles.scad #214

olemis opened this issue Jun 16, 2020 · 2 comments

Comments

@olemis
Copy link
Contributor

olemis commented Jun 16, 2020

BOLTS library version: 0.3
OS : Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64

Code snippet

include <BOLTS.scad>
tslot20x20_2s(detailed=true);

Result

WARNING: Ignoring unknown variable 'center', in file $OPENSCADPATH/libraries/base/aluminiumProfiles.scad, line 269.

Expected behavior

No warning

Additional context

The issue is caused by a ternary condition evaluated and no way to resolve center variable name to a value in local module namespace.

@berndhahnebach
Copy link
Contributor

Would you fix it and go for a PR? I do not use OpenScad at all. Thus fixing any bug there is quite difficault for me.

@berndhahnebach
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants