Skip to content

Commit 71d4c2c

Browse files
committed
fix(soba): also register nonObjects() for center (so geometries can be taken into account)
1 parent f5262bc commit 71d4c2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/soba/staging/src/lib/center.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ export class NgtsCenter {
128128
];
129129

130130
const localState = getLocalState(inner);
131-
const children = localState?.objects();
131+
if (!localState) return;
132+
133+
localState.nonObjects();
134+
const children = localState.objects();
132135
if (!children?.length) return;
133136

134137
outer.matrixWorld.identity();

0 commit comments

Comments
 (0)