diff options
author | kobewi <kobewi4e@gmail.com> | 2022-07-17 23:55:46 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-07-18 13:01:04 +0200 |
commit | e8288ac9ab854da0efc147815cff798ac59c1504 (patch) | |
tree | cbf68a60cc7edc385b5521260a29d96cf73ef91b /scene/resources | |
parent | 1c6148aa86c4a3b8d5c292da69ffacc2f3a46eb8 (diff) |
Clarify create_from_image() usage
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/texture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 3a8f50c3c3..7f1e01e245 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -323,6 +323,7 @@ void ImageTexture::_bind_methods() { ClassDB::bind_static_method("ImageTexture", D_METHOD("create_from_image", "image"), &ImageTexture::create_from_image); ClassDB::bind_method(D_METHOD("get_format"), &ImageTexture::get_format); + ClassDB::bind_method(D_METHOD("set_image", "image"), &ImageTexture::set_image); ClassDB::bind_method(D_METHOD("update", "image"), &ImageTexture::update); ClassDB::bind_method(D_METHOD("set_size_override", "size"), &ImageTexture::set_size_override); } |