RobotecAI / o3de-rgl-gem

Robotec GPU Lidar for O3DE
Apache License 2.0
51 stars 4 forks source link

`OnModelReady` assert fail when dynamically adding mesh to Entity. #23

Closed pijaro closed 2 months ago

pijaro commented 9 months ago

Adding a model in a run-time, in already existing Entity results in triggering an assert in MeshEntityManager::OnModelReady.

Code: MeshEntityManager::OnModelReady:L42

It is possible that on the very same entity, there will be multiple OnModelReady calls and the number of entities might not be zero. Therefore, most probably the assert is unnecessary.