You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Incorporate min and max zoom limits into the EditorZoomWidget
This commit is contained in:
@@ -931,6 +931,7 @@ GenericTilePolygonEditor::GenericTilePolygonEditor() {
|
||||
snap_subdivision->connect("value_changed", callable_mp(this, &GenericTilePolygonEditor::_store_snap_options).unbind(1));
|
||||
|
||||
editor_zoom_widget = memnew(EditorZoomWidget);
|
||||
editor_zoom_widget->setup_zoom_limits(0.125, 128.0);
|
||||
editor_zoom_widget->set_position(Vector2(5, 5));
|
||||
editor_zoom_widget->connect("zoom_changed", callable_mp(this, &GenericTilePolygonEditor::_zoom_changed).unbind(1));
|
||||
editor_zoom_widget->set_shortcut_context(this);
|
||||
|
||||
Reference in New Issue
Block a user