Napkin crashes after selecting property with deleted entityptr


#1

Hi,

Just to report, the following results in an crash of napkin:

  1. Create an entity X.
  2. Create another entity Y with a component C (in our case EnvironmentComponent) with a property of type std::vector<EntityPtr>. Add an entityPtr to entity X to this vector property.
  3. Delete entity X.
  4. Select component C of entity Y and napkin crashes immediately.

Casi


#2

Hey,

It seems we have no occurrences of properties with std::vector<nap::EntityPtr>, so I tried this on a simple object and serialization fails, but I can successfully remove the pointee without crashing Napkin.

Assuming EnvironmentComponent is your core, would you care to share some code for your component with me so I can try to repro?