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
83f5407177
commit
7130c1bebc
1 changed files with 2 additions and 2 deletions
|
@ -74,10 +74,10 @@ void VisualInstance::set_instance_use_identity_transform(bool p_enable) {
|
||||||
if (is_inside_tree()) {
|
if (is_inside_tree()) {
|
||||||
if (p_enable) {
|
if (p_enable) {
|
||||||
// want to make sure instance is using identity transform
|
// want to make sure instance is using identity transform
|
||||||
VisualServer::get_singleton()->instance_set_transform(instance, get_global_transform());
|
VisualServer::get_singleton()->instance_set_transform(instance, Transform());
|
||||||
} else {
|
} else {
|
||||||
// want to make sure instance is up to date
|
// want to make sure instance is up to date
|
||||||
VisualServer::get_singleton()->instance_set_transform(instance, Transform());
|
VisualServer::get_singleton()->instance_set_transform(instance, get_global_transform());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue