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

Use of deprecated function in Controller.gd #4

Open
Sslaxx opened this issue May 21, 2019 · 1 comment
Open

Use of deprecated function in Controller.gd #4

Sslaxx opened this issue May 21, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Sslaxx
Copy link

Sslaxx commented May 21, 2019

W 0:00:25:0936 This method has been deprecated and will be removed in the future <C Source> scene/resources/texture.cpp:232 @ load() <Stack Trace> Controller.gd:79 @ _on_OpenFileDialog_file_selected()

Said line being: tex.load(path)

Looking at https://docs.godotengine.org/en/3.1/classes/class_imagetexture.html it seems create_from_image is the function that should be used in future? Unless ImageTexture itself is being deprecated, of course.

@alfredbaudisch alfredbaudisch self-assigned this May 21, 2019
@alfredbaudisch alfredbaudisch added the enhancement New feature or request label May 21, 2019
@alfredbaudisch
Copy link
Owner

Thank you. I didn't get this warning, probably in the most recent build of Godot only. I will fix it.

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

No branches or pull requests

2 participants