mirror of
https://github.com/Relintai/mesh_data_resource.git
synced 2025-02-20 17:14:31 +01:00
Fix moving MeshDataInstance even when only it's parent is moved.
This commit is contained in:
parent
2a2b2ae31a
commit
4595d4abee
@ -196,7 +196,7 @@ void MeshDataInstance::_notification(int p_what) {
|
|||||||
VisualServer *vs = VisualServer::get_singleton();
|
VisualServer *vs = VisualServer::get_singleton();
|
||||||
|
|
||||||
if (_mesh_instance != RID()) {
|
if (_mesh_instance != RID()) {
|
||||||
vs->instance_set_transform(_mesh_instance, get_transform());
|
vs->instance_set_transform(_mesh_instance, get_global_transform());
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user