Skip to content

Commit

Permalink
Remove redundant removeObject call, this is already called on child-d…
Browse files Browse the repository at this point in the history
…etached (#752)
  • Loading branch information
vincentfretin authored Aug 29, 2024
1 parent 528d92a commit 1101fbe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function removeEntity(entity, force) {
)
) {
var closest = findClosestEntity(entity);
AFRAME.INSPECTOR.removeObject(entity.object3D);
entity.parentNode.removeChild(entity);
AFRAME.INSPECTOR.selectEntity(closest);
}
Expand Down

0 comments on commit 1101fbe

Please sign in to comment.