Skip to content

Commit

Permalink
minor patch for unsafe scene-iteration. more tbd here
Browse files Browse the repository at this point in the history
  • Loading branch information
crocdialer committed Jun 1, 2024
1 parent 376b515 commit 351b0bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PBRDeferred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,11 @@ void PBRDeferred::update_recycling(const SceneConstPtr &scene, const CameraPtr &
auto obj_global_transform = object->global_transform();

// TODO: figure out wtf is racing mesh-component after scene-changes
if(!mesh_component.mesh) { continue; }
auto mesh = mesh_component.mesh;
if(!mesh) { continue; }

const auto &mesh = mesh_component.mesh;
bool transform_update = false;
meshes.insert(mesh_component.mesh);
meshes.insert(mesh);

bool animation_update = !mesh->node_animations.empty() && !mesh->root_bone && !mesh->morph_buffer &&
object->has_component<animation_component_t>();
Expand Down

0 comments on commit 351b0bd

Please sign in to comment.