forked from StudioInfinity/dyna3
App: don't bother copying key into element
When we access an element, we always have its key, either because the slab iterator yielded it along side the element or because we used it to get the element from the slab.
This commit is contained in:
parent
d121385c18
commit
147e275823
4 changed files with 32 additions and 43 deletions
|
@ -7,8 +7,7 @@ pub struct Element {
|
|||
pub id: String,
|
||||
pub label: String,
|
||||
pub color: [f32; 3],
|
||||
pub rep: DVector<f64>,
|
||||
pub key: usize
|
||||
pub rep: DVector<f64>
|
||||
}
|
||||
|
||||
// a complete, view-independent description of an assembly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue