Fix crash when selecting a tool while editing a fog polygon

This commit is contained in:
Mitchell McCaffrey 2020-06-21 16:55:58 +10:00
parent aebc0f9267
commit ceedceabf5

View File

@ -340,6 +340,7 @@ function MapFog({
{shapes.map(renderShape)}
{drawingShape && renderShape(drawingShape)}
{drawingShape &&
selectedToolSettings &&
selectedToolSettings.type === "polygon" &&
renderPolygonAcceptTick(drawingShape)}
{editingShapes.length > 0 && editingShapes.map(renderEditingShape)}