diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-01-26 16:10:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 16:10:27 +0100 |
commit | 8b8c630f6023ea3b551fd415bc1e65f514ce9777 (patch) | |
tree | 03922c38417a8fe3e631ba7042d19ed69ab9ae1c | |
parent | eda5f4ea31f36aa8d551007a61faf71521667c12 (diff) | |
parent | 6e2a55c4641a8b9a456a64694077f9428da8d200 (diff) |
Merge pull request #44814 from hoontee/fix-44714
Do not clear materials when setting mesh
-rw-r--r-- | scene/3d/mesh_instance_3d.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/3d/mesh_instance_3d.cpp b/scene/3d/mesh_instance_3d.cpp index 865510731e..44dd6e0e5f 100644 --- a/scene/3d/mesh_instance_3d.cpp +++ b/scene/3d/mesh_instance_3d.cpp @@ -112,7 +112,6 @@ void MeshInstance3D::set_mesh(const Ref<Mesh> &p_mesh) { if (mesh.is_valid()) { mesh->disconnect(CoreStringNames::get_singleton()->changed, callable_mp(this, &MeshInstance3D::_mesh_changed)); - materials.clear(); } mesh = p_mesh; |