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

sk referenced before assignment #42

Closed
ceremcem opened this issue Sep 11, 2018 · 3 comments
Closed

sk referenced before assignment #42

ceremcem opened this issue Sep 11, 2018 · 3 comments

Comments

@ceremcem
Copy link
Contributor

When unfold is performed with Generate projection sketch disabled, following exception is thrown:

Traceback (most recent call last):
  File "/home/aea/.FreeCAD/Mod/sheetmetal/SheetMetalUnfolder.py", line 2253, in accept
    docG.getObject(sk.Name).LineColor = (0.0,0.0,0.5)
<type 'exceptions.UnboundLocalError'>: local variable 'sk' referenced before assignment

Unfolded solid is still generated successfully.

@shaise
Copy link
Owner

shaise commented Sep 11, 2018

Thanks, I will take a look

shaise added a commit that referenced this issue Sep 15, 2018
Support separate color for bend lines (issue #41)
@shaise
Copy link
Owner

shaise commented Sep 15, 2018

Fixed.
Please test and close.

@ceremcem
Copy link
Contributor Author

Nicely working. Thanks!

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

No branches or pull requests

2 participants