Do not clear materials when setting mesh
This commit is contained in:
parent
227494be59
commit
6e2a55c464
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue