grider
grider copied to clipboard
Use of deprecated function in Controller.gd
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.
Thank you. I didn't get this warning, probably in the most recent build of Godot only. I will fix it.