mirror of
https://github.com/godotengine/godot.git
synced 2024-11-11 14:43:44 +00:00
Merge pull request #44814 from hoontee/fix-44714
Do not clear materials when setting mesh
This commit is contained in:
commit
8b8c630f60
@ -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 New Issue
Block a user