You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Revert backport of 2D transform and camera snapping options
More work is needed to make sure that those options actually solve users' issues, so we prefer to remove the options for 3.2.4 and revisit for a future release.
This commit is contained in:
@@ -41,22 +41,14 @@ static Transform2D _canvas_get_transform(VisualServerViewport::Viewport *p_viewp
|
||||
|
||||
float scale = 1.0;
|
||||
|
||||
bool snap = Engine::get_singleton()->get_snap_2d_viewports();
|
||||
|
||||
if (p_viewport->canvas_map.has(p_canvas->parent)) {
|
||||
|
||||
Transform2D c_xform = p_viewport->canvas_map[p_canvas->parent].transform;
|
||||
if (snap) {
|
||||
c_xform.elements[2] = c_xform.elements[2].round();
|
||||
}
|
||||
xf = xf * c_xform;
|
||||
scale = p_canvas->parent_scale;
|
||||
}
|
||||
|
||||
Transform2D c_xform = p_canvas_data->transform;
|
||||
if (snap) {
|
||||
c_xform.elements[2] = c_xform.elements[2].round();
|
||||
}
|
||||
xf = xf * c_xform;
|
||||
|
||||
if (scale != 1.0 && !VSG::canvas->disable_scale) {
|
||||
|
||||
Reference in New Issue
Block a user