Skip to content

Commit

Permalink
Fixes bevyengine#134 and bevyengine#135 with a slight hit on performa…
Browse files Browse the repository at this point in the history
…nces as get_or_assign_index will now always assign (bevyengine#247)
  • Loading branch information
BorisBoutillier authored and BimDav committed Aug 26, 2020
1 parent f869c79 commit e1c5103
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -90,6 +90,8 @@ where
for buffer_status in self.uniform_arrays.iter_mut() {
if let Some((_name, buffer_status)) = buffer_status {
buffer_status.changed_item_count = 0;
buffer_status.current_index = 0;
buffer_status.indices.clear();
buffer_status.current_offset = 0;
buffer_status.changed_size = 0;
}
Expand Down

0 comments on commit e1c5103

Please sign in to comment.