cq-editor doesn't take in account show_object call from imported module
Open
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have noticed that if I have in a file 'file1.py' a function like this this :
```
import cadquery as cq
def make_cylinder(radius):
cyl = cq.Workplane().circle(5).extrude(10)
try:
show_object(cyl)
except NameError:
pass
```
And then in another file 'file2.py' I import this function :
```
import cadquery as cq
from file1 import make_cylinder
make_cylinder(5)
```
cq-editor won't render my cylinder, while if the function is in the main file it will render.
Is there a way to make it work this way ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.