Skip to content

Commit

Permalink
Gizmo fixes (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored Jan 17, 2025
1 parent 9118d99 commit f412d55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pivot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const registerPivotEvents = (events: Events) => {
});

// pivot mode
let origin: PivotOrigin = 'center';
let origin: PivotOrigin = 'boundCenter';

const setOrigin = (o: PivotOrigin) => {
if (o !== origin) {
Expand Down
2 changes: 1 addition & 1 deletion src/splats-transform-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SplatsTransformHandler implements TransformHandler {

placePivot() {
const origin = this.events.invoke('pivot.origin');
this.splat.getPivot(origin === 'center' ? 'center' : 'boundCenter', false, transform);
this.splat.getPivot(origin === 'center' ? 'center' : 'boundCenter', true, transform);
this.events.fire('pivot.place', transform);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ui/bottom-toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class BottomToolbar extends Container {

const origin = new Button({
id: 'bottom-toolbar-origin',
class: 'bottom-toolbar-toggle',
class: ['bottom-toolbar-toggle', 'active'],
icon: 'E189'
});

Expand Down

0 comments on commit f412d55

Please sign in to comment.