From 464aa1f2f8281b3c7c97b567a1f683e9d53d43cc Mon Sep 17 00:00:00 2001 From: Olli Meier Date: Thu, 3 Oct 2024 14:10:08 +0200 Subject: [PATCH] Only run doPathOperations if is in edit mode (isEditing) --- src/fontra/views/editor/panel-transformation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fontra/views/editor/panel-transformation.js b/src/fontra/views/editor/panel-transformation.js index e108e7386..ad592c65e 100644 --- a/src/fontra/views/editor/panel-transformation.js +++ b/src/fontra/views/editor/panel-transformation.js @@ -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();