Merge pull request #44814 from hoontee/fix-44714

Do not clear materials when setting mesh
This commit is contained in:
Rémi Verschelde 2021-01-26 16:10:27 +01:00 committed by GitHub
commit 8b8c630f60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;