summaryrefslogtreecommitdiffstats
path: root/scene/resources/texture.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-08-21 00:08:05 +0200
committerGitHub <noreply@github.com>2018-08-21 00:08:05 +0200
commit35d232b10018899261253aa13249fae58d08be9d (patch)
treee697b2c3b071d8e1f78d7a885a5378c179ca13bf /scene/resources/texture.cpp
parent6b6e3bdce831417a3bec0e59571adf5efceda1f1 (diff)
parent76adef27042b5185ab8a1db991cfff8ab872b928 (diff)
downloadredot-engine-35d232b10018899261253aa13249fae58d08be9d.tar.gz
Merge pull request #21228 from Noshyaar/docs-bind
Fix arg name in docs, some copy-paste errors
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r--scene/resources/texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 96edb17eea..d8efbeba17 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -1990,7 +1990,7 @@ void TextureLayered::_bind_methods() {
ClassDB::bind_method(D_METHOD("create", "width", "height", "depth", "format", "flags"), &TextureLayered::create, DEFVAL(FLAGS_DEFAULT));
ClassDB::bind_method(D_METHOD("set_layer_data", "image", "layer"), &TextureLayered::set_layer_data);
- ClassDB::bind_method(D_METHOD("get_layer_data", "layer"), &TextureLayered::set_layer_data);
+ ClassDB::bind_method(D_METHOD("get_layer_data", "layer"), &TextureLayered::get_layer_data);
ClassDB::bind_method(D_METHOD("set_data_partial", "image", "x_offset", "y_offset", "layer", "mipmap"), &TextureLayered::set_data_partial, DEFVAL(0));
ClassDB::bind_method(D_METHOD("_set_data", "data"), &TextureLayered::_set_data);