forked from Github/frigate
Zone/mask editor improvements (#11236)
* add points to completed polygons in zone/mask editor * change line order so edges are more easily clickable
This commit is contained in:
@@ -41,7 +41,7 @@ export default function PolygonEditControls({
|
||||
...activePolygon.pointsOrder.slice(0, lastPointOrderIndex),
|
||||
...activePolygon.pointsOrder.slice(lastPointOrderIndex + 1),
|
||||
],
|
||||
isFinished: false,
|
||||
isFinished: activePolygon.isFinished && activePolygon.points.length > 3,
|
||||
};
|
||||
|
||||
setPolygons(updatedPolygons);
|
||||
|
||||
Reference in New Issue
Block a user