Skip to content

Commit

Permalink
Only run doPathOperations if is in edit mode (isEditing)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollimeier committed Oct 3, 2024
1 parent 193802c commit 2c7d67d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fontra/views/editor/panel-transformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,10 @@ export default class TransformationPanel extends Panel {
}

async doPathOperations(pathOperationFunc, key) {
if (!this.sceneController.sceneSettings.selectedGlyph?.isEditing) {
return;
}

const positionedGlyph =
this.sceneController.sceneModel.getSelectedPositionedGlyph();

Expand Down

0 comments on commit 2c7d67d

Please sign in to comment.