summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-05 17:06:49 +0100
committerGitHub <noreply@github.com>2020-02-05 17:06:49 +0100
commitdc9774b17b79e9eaa87960e0f1e7fde464878880 (patch)
tree835e8c04cddbe5d4ba42ccc45235132d391e6b9c /scene
parent0317d49951dc2f70c6bf155f5b26c880c9bdce71 (diff)
parentdfb7d46a2aaf9bef2c7dd067e699e70291062fb6 (diff)
Merge pull request #32959 from georgwacker/control-node-anim-fix
Fix control node transform animation jitter with pivot offset
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/control.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index ae48a1356e..4c70bd1d39 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -462,11 +462,6 @@ void Control::_update_canvas_item_transform() {
Transform2D xform = _get_internal_transform();
xform[2] += get_position();
- // We use a little workaround to avoid flickering when moving the pivot with _edit_set_pivot()
- if (is_inside_tree() && Math::abs(Math::sin(data.rotation * 4.0f)) < 0.00001f && get_viewport()->is_snap_controls_to_pixels_enabled()) {
- xform[2] = xform[2].round();
- }
-
VisualServer::get_singleton()->canvas_item_set_transform(get_canvas_item(), xform);
}