Skip to content

Commit 12b884d

Browse files
fix(view): fixed subview.pose value
1 parent e58c12f commit 12b884d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/view.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ export class ViewService {
233233
private _currentViewportJSON: string;
234234

235235
private _subviews: Subview[] = [];
236-
private _subviewPose: EntityPose[] = [];
237236
private _subviewFrustum: PerspectiveFrustum[] = [];
238237

239238
public get subviews() {
@@ -284,8 +283,7 @@ export class ViewService {
284283
decomposePerspectiveProjectionMatrix(serializedSubview.projectionMatrix, subview.frustum);
285284
subview['projectionMatrix'] = <Matrix4>subview.frustum.projectionMatrix;
286285

287-
subview.pose = this._subviewPose[index] =
288-
this._subviewPose[index] || contextService.createEntityPose(contextService.getSubviewEntity(index));
286+
subview.pose = contextService.getEntityPose(contextService.getSubviewEntity(index));
289287
subview.pose.update(state.time);
290288

291289
index++;

0 commit comments

Comments
 (0)