Skip to content

Commit

Permalink
dependency resolver: compute() is not allowed to modified the compute…
Browse files Browse the repository at this point in the history
…d storage
  • Loading branch information
pragmatrix committed Jul 2, 2024
1 parent e645b97 commit c53c4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderer/src/scene/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ trait DependencyResolver {

fn compute(
shared: &Self::SharedStorage,
computed: &mut Self::ComputedStorage,
computed: &Self::ComputedStorage,
source: &Self::Source,
) -> Self::Computed;

Expand Down Expand Up @@ -213,7 +213,7 @@ impl DependencyResolver for PositionedMatrix {
caches.positions_matrix.mut_or_default(id)
}

fn compute(scene: &Scene, caches: &mut SceneCaches, source: &Self::Source) -> Self::Computed {
fn compute(scene: &Scene, caches: &SceneCaches, source: &Self::Source) -> Self::Computed {
let (parent_id, matrix_id) = (source.parent, source.matrix);
let local_matrix = &**scene.matrices.get_unwrapped(matrix_id);
parent_id.map_or_else(
Expand Down

0 comments on commit c53c4f6

Please sign in to comment.