Do not clear materials when setting mesh

This commit is contained in:
hoontee 2020-12-30 10:59:57 -06:00
parent 227494be59
commit 6e2a55c464

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;