diff options
author | hoontee <5272529+hoontee@users.noreply.github.com> | 2020-12-30 10:59:57 -0600 |
---|---|---|
committer | hoontee <5272529+hoontee@users.noreply.github.com> | 2020-12-30 11:02:01 -0600 |
commit | 6e2a55c4641a8b9a456a64694077f9428da8d200 (patch) | |
tree | 5bb8671a448e785b141b2bdf1ade2f7fcb1b866a | |
parent | 227494be59eca4f50604a9c90c3c36ed15e7ecc5 (diff) |
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 13f40aed4f..c254c24fc5 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; |