mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-21 16:37:20 +01:00
Physics Interpolation - Fix VisualInstance::set_instance_use_identity_transform()
The logic for updating the `VisualServer` with the transform was the wrong way around.
This commit is contained in:
parent
8a8c4c7982
commit
2473bd2234
@ -77,10 +77,10 @@ void VisualInstance::set_instance_use_identity_transform(bool p_enable) {
|
||||
if (is_inside_tree()) {
|
||||
if (p_enable) {
|
||||
// want to make sure instance is using identity transform
|
||||
RenderingServer::get_singleton()->instance_set_transform(instance, get_global_transform());
|
||||
RenderingServer::get_singleton()->instance_set_transform(instance, Transform());
|
||||
} else {
|
||||
// want to make sure instance is up to date
|
||||
RenderingServer::get_singleton()->instance_set_transform(instance, Transform());
|
||||
RenderingServer::get_singleton()->instance_set_transform(instance, get_global_transform());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user