Remove new polygon button in 3d view

This commit is contained in:
hodasemi 2023-05-14 16:36:31 +02:00
parent c7bff62b8c
commit 1da3a67046

View file

@ -83,6 +83,7 @@ fn update_ui_side_panel(
} }
} }
if global_state.view_2d {
if global_state.polygon_started { if global_state.polygon_started {
if let Some(polygon) = object_infos.active_polygon() { if let Some(polygon) = object_infos.active_polygon() {
for (index, point) in polygon.points().iter().enumerate() { for (index, point) in polygon.points().iter().enumerate() {
@ -94,6 +95,7 @@ fn update_ui_side_panel(
global_state.polygon_started = true; global_state.polygon_started = true;
} }
} }
}
}); });
} }