mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-10 22:02:37 +02:00
Fix skinning by default in MeshInstance even if the mesh is merged.
This commit is contained in:
parent
b287513656
commit
34c3176c39
@ -144,7 +144,7 @@ void MeshInstance::set_mesh(const Ref<Mesh> &p_mesh) {
|
|||||||
mesh->connect(CoreStringNames::get_singleton()->changed, this, SceneStringNames::get_singleton()->_mesh_changed);
|
mesh->connect(CoreStringNames::get_singleton()->changed, this, SceneStringNames::get_singleton()->_mesh_changed);
|
||||||
materials.resize(mesh->get_surface_count());
|
materials.resize(mesh->get_surface_count());
|
||||||
|
|
||||||
_initialize_skinning(false, false);
|
_initialize_skinning(false, true);
|
||||||
} else {
|
} else {
|
||||||
set_base(RID());
|
set_base(RID());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user