mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
bevy_crevice: Fix incorrect iterator usage in WriteStd430 impl for [T] (#3591)
# Objective - Fix incorrect iterator usage in WriteStd430 impl for [T] - The first item was being written twice. This is correct in the WriteStd140 impl for [T]. ## Solution - See the code.
This commit is contained in:
parent
470f94d19e
commit
b9337debb9
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ where
|
||||||
offset = item.write_std430(writer)?;
|
offset = item.write_std430(writer)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
for item in self.iter() {
|
for item in iter {
|
||||||
item.write_std430(writer)?;
|
item.write_std430(writer)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue