Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
i-tengfei committed Feb 22, 2023
1 parent abb6f0b commit 475f9d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Entity/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const Entity = createCesiumComponent<CesiumEntity, EntityProps>({
name: "Entity",
create(context, props) {
if (!context.entityCollection) return;
delete props.children;
const element = new CesiumEntity(props);
if (context.viewer && props.selected) {
context.viewer.selectedEntity = element;
Expand Down

0 comments on commit 475f9d2

Please sign in to comment.