Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

GLTF: Fix `set_wrap_t` setting the wrong variable

Aaron Frankee8384ecb98d4
diff --git a/modules/gltf/structures/gltf_texture_sampler.h b/modules/gltf/structures/gltf_texture_sampler.h
index 99dc026b5c8..3513531dfaa 100644
--- a/modules/gltf/structures/gltf_texture_sampler.h
+++ b/modules/gltf/structures/gltf_texture_sampler.h
@@ -81,7 +81,7 @@ public:
}
void set_wrap_t(const int wrap_mode) {
- wrap_s = (WrapMode)wrap_mode;
+ wrap_t = (WrapMode)wrap_mode;
}
StandardMaterial3D::TextureFilter get_filter_mode() const {