mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Merge pull request #51962 from LoipesMas/zoom_fix
Clamp EditorZoomWidget zoom
This commit is contained in:
commit
8e3e9d121d
@ -4195,6 +4195,7 @@ void CanvasItemEditor::_zoom_on_position(real_t p_zoom, Point2 p_position) {
|
||||
p_zoom = CLAMP(p_zoom, MIN_ZOOM, MAX_ZOOM);
|
||||
|
||||
if (p_zoom == zoom) {
|
||||
zoom_widget->set_zoom(p_zoom);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user