Merge pull request #44814 from hoontee/fix-44714
Do not clear materials when setting mesh
This commit is contained in:
commit
8b8c630f60
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()) {
|
if (mesh.is_valid()) {
|
||||||
mesh->disconnect(CoreStringNames::get_singleton()->changed, callable_mp(this, &MeshInstance3D::_mesh_changed));
|
mesh->disconnect(CoreStringNames::get_singleton()->changed, callable_mp(this, &MeshInstance3D::_mesh_changed));
|
||||||
materials.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh = p_mesh;
|
mesh = p_mesh;
|
||||||
|
|
Loading…
Reference in a new issue