aleksigron / kokko

Simple cross-platform game engine using OpenGL.
MIT License
20 stars 1 forks source link

Deleting an entity with children does not delete children #72

Closed aleksigron closed 2 months ago

aleksigron commented 2 months ago

If you have an object in the scene that has children, you can delete the object, but that doesn't delete its children. These children are still left behind in some way. This can be reproduced at least with mesh components.

  1. Create an entity with a mesh component with a mesh
  2. Create another entity with a mesh component with a mesh
  3. Move the second entity to be a child of the first entity in the scene
  4. Delete the parent entity
  5. Observe that the child entity's mesh is still drawn