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

update() in Custom Drawing 2D #6208

Closed
romarro opened this issue Sep 20, 2022 · 1 comment · Fixed by #6350
Closed

update() in Custom Drawing 2D #6208

romarro opened this issue Sep 20, 2022 · 1 comment · Fixed by #6350
Labels

Comments

@romarro
Copy link

romarro commented Sep 20, 2022

Your Godot version:
4.0 beta1
Issue description:
In the documentation page for Custom Draw 2D at updating drawing there is a reference to the update() method
This method doen't exist anymore in the GDScript 2.0.

I can only presume that queue_draw() is the function to be called instead of update(). Is this right?

URL to the documentation page:
tutorials/2d/custom_drawing_in_2d.rst

If you know how to fix the issue you are reporting please
consider opening a pull request. We provide a tutorial on
using git here: https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html,
writing documentation at https://docs.godotengine.org/en/stable/community/contributing/docs_writing_guidelines.html
and contributing to the class reference here: https://docs.godotengine.org/en/stable/community/contributing/updating_the_class_reference.html

@romarro romarro added the bug label Sep 20, 2022
@ll3006
Copy link
Contributor

ll3006 commented Oct 29, 2022

Yes that's right, CanvasItem.update() has been renamed to queue_redraw() in godotengine/godot#64377. I'll submit a PR shortly.

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

Successfully merging a pull request may close this issue.

2 participants