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

Drawing not allowed errors for valid draw calls on startup #19681

Closed
letheed opened this issue Jun 20, 2018 · 0 comments · Fixed by #22225
Closed

Drawing not allowed errors for valid draw calls on startup #19681

letheed opened this issue Jun 20, 2018 · 0 comments · Fixed by #22225
Assignees
Milestone

Comments

@letheed
Copy link
Contributor

letheed commented Jun 20, 2018

When opening the editor the following error appears multiple times in the output console:

Drawing is only allowed inside NOTIFICATION_DRAW, _draw() function or 'draw' signal.

This happens when I make draw calls in a tool script attached to a node that is the child of a TileMap. Not sure why Tilemap, a simple Node2D doesn't trigger it but I haven't tried other nodes. The scene needs to be opened by the editor on startup as well. If I open it manually, there is no error.

I think this could be the same issue as #17625.

As I posted there, it seems drawing is false for a short while at the beginning of the script's run.

Godot version:
3.0.3

Minimal reproduction project:
Playground.zip

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

Successfully merging a pull request may close this issue.

2 participants