sizing actually working correctly now
This commit is contained in:
@@ -128,7 +128,7 @@ impl Primitives {
|
||||
self.run.len() != 0
|
||||
}
|
||||
|
||||
pub fn skip(&mut self, range: &Range<usize>) {
|
||||
pub fn skip(&mut self, range: &mut Range<usize>) {
|
||||
if self.running() {
|
||||
self.run.data.extend(&self.instances.data[range.clone()]);
|
||||
self.run.assoc.extend(
|
||||
@@ -137,7 +137,9 @@ impl Primitives {
|
||||
.map(|i| i.duplicate()),
|
||||
);
|
||||
}
|
||||
range.start = self.pos;
|
||||
self.pos += range.len();
|
||||
range.end = self.pos;
|
||||
}
|
||||
|
||||
pub(crate) fn clear(&mut self) {
|
||||
@@ -184,6 +186,7 @@ impl Primitives {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct PrimitiveHandle {
|
||||
idx: usize,
|
||||
binding: u32,
|
||||
|
||||
Reference in New Issue
Block a user