Skip to content

Commit 122b4a3

Browse files
authored
Fix wrong emitter id of select object action (#354)
Fix emitter id
1 parent 7c1bc8e commit 122b4a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/base/src/3dview/mainview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export class MainView extends React.Component<IProps, IStates> {
285285
rotation: this._camera.rotation.toArray([]),
286286
up: this._camera.up.toArray([])
287287
},
288-
this.state.id
288+
this._mainViewModel.id
289289
);
290290
}, 100)
291291
);
@@ -542,7 +542,7 @@ export class MainView extends React.Component<IProps, IStates> {
542542
}
543543

544544
this._updateSelected(newSelection);
545-
this._model.syncSelected(newSelection, this.state.id);
545+
this._model.syncSelected(newSelection, this._mainViewModel.id);
546546
}
547547
}
548548

0 commit comments

Comments
 (0)