grider icon indicating copy to clipboard operation
grider copied to clipboard

Use of deprecated function in Controller.gd

Open Sslaxx opened this issue 6 years ago • 1 comments

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.

Sslaxx avatar May 21 '19 12:05 Sslaxx

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

alfredbaudisch avatar May 21 '19 17:05 alfredbaudisch