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

Bug: Box not working in P3D #216

Closed
Andy-Python-Programmer opened this issue Aug 2, 2020 · 1 comment
Closed

Bug: Box not working in P3D #216

Andy-Python-Programmer opened this issue Aug 2, 2020 · 1 comment

Comments

@Andy-Python-Programmer
Copy link
Contributor

Andy-Python-Programmer commented Aug 2, 2020

Describe the bug
Box not showing in P3D

To Reproduce

from p5 import *

def setup():
    size(400, 400)

def draw():
    box(10, 10, 10)

run(mode=P3D)

Expected behavior
Should show a box.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

  File "main.py", line 7, in draw
    box(10, 10, 10)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\p5\core\primitives.py", line 69, in wrapped
    draw_shape(s)
  File "C:\Users\user\AppData\Local\Programs\Python\Python38-32\lib\site-packages\p5\core\primitives.py", line 582, in draw_shape
    for child_shape in shape.children:
AttributeError: 'Geometry' object has no attribute 'children'
@arihantparsoya
Copy link
Member

I tested this code with the current version of mater repo and it works fine.

I believe this issue was fixed in #141

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