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

YSort as a child of YSort does not draw on canvas from _draw() function #49165

Open
ohin opened this issue May 28, 2021 · 0 comments
Open

YSort as a child of YSort does not draw on canvas from _draw() function #49165

ohin opened this issue May 28, 2021 · 0 comments

Comments

@ohin
Copy link

ohin commented May 28, 2021

Godot version: 3.3.1

OS/device including version: Ubuntu 20.10, Intel Corporation HD Graphics 620 (rev 02), driver=i915, GLES3

Issue description:
YSort, which is direct descendant of parent YSort, with script attached and draw_circle call in _draw function does not draw anything. I am expecting it to draw on canvas.
My use case is to draw helper data in the editor.
When enabled is set to false on the child YSort, circle appears.

Steps to reproduce:

  1. Create new 2D scene
  2. Add YSort node
  3. Add another YSort as a child of the first YSort node.
  4. Attach new GDScript to the child YSort node.
  5. Override _draw function.
  6. Call draw_circle(Vector.ZERO, 50, Color.blue)
  7. Error: no circle is drawn. However, on parent YSort node, the same script draws the circle.

Minimal reproduction project:
YSortBug.zip

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