Skip to content

Commit 20e4d51

Browse files
committed
Issue: Default Location button does not show default location
This seems related to the axis map. `self.operator.newDefaultLocation` needs to be called with `bend=True`.
1 parent 08a9e82 commit 20e4d51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/lib/longboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def resetPreviewCallback(self, sender=None):
388388
# set the preview location to the default.
389389
currentPreviewLocation = self.operator.getPreviewLocation()
390390
currentPreviewContinuous, currentPreviewDiscrete = self.operator.splitLocation(currentPreviewLocation)
391-
defaultLocation = self.operator.newDefaultLocation(discreteLocation=currentPreviewDiscrete)
391+
defaultLocation = self.operator.newDefaultLocation(bend=True, discreteLocation=currentPreviewDiscrete)
392392
self.operator.setPreviewLocation(defaultLocation)
393393
self.operator.changed()
394394

@@ -920,7 +920,7 @@ def glyphEditorDidSetGlyph(self, info):
920920
ds = self.operator
921921
previewLocation_dragging = ds.getPreviewLocation()
922922
if previewLocation_dragging is None:
923-
previewLocation_dragging = ds.newDefaultLocation()
923+
previewLocation_dragging = ds.newDefaultLocation(bend=True)
924924
ds.setPreviewLocation(previewLocation_dragging)
925925
# split into continuous and discrete
926926
previewContinuous, previewDiscrete = ds.splitLocation(previewLocation_dragging)

0 commit comments

Comments
 (0)