🔧 Clean up and use proper imports

This commit is contained in:
Elena Torro
2026-01-21 15:44:41 +01:00
parent 499aac31a4
commit aab1d97c4c
4 changed files with 9 additions and 49 deletions

View File

@@ -228,7 +228,7 @@ impl State {
}
pub fn rebuild_modifier_tiles(&mut self, ids: Vec<Uuid>) {
// No longer need unsafe lifetime extension - index-based storage is safe
// Index-based storage is safe
self.render_state
.rebuild_modifier_tiles(&mut self.shapes, ids);
}

View File

@@ -27,7 +27,6 @@ use super::RawShapeType;
/// | 88 | 16 | corners | 4 × f32 LE (r1,r2,r3,r4) |
/// |--------|------|--------------|-----------------------------------|
/// | Total | 104 | | |
pub const BASE_PROPS_SIZE: usize = 104;
const FLAG_CLIP_CONTENT: u8 = 0b0000_0001;
@@ -67,12 +66,6 @@ fn read_uuid(bytes: &[u8], offset: usize) -> Uuid {
)
}
/// Sets base shape properties from a pre-allocated buffer in a single WASM call.
///
/// This replaces multiple individual WASM calls (use_shape, set_parent, set_shape_type,
/// set_shape_clip_content, set_shape_rotation, set_shape_transform, set_shape_blend_mode,
/// set_shape_opacity, set_shape_hidden, set_shape_selrect, set_shape_corners,
/// set_shape_constraints) with a single batched call.
#[no_mangle]
pub extern "C" fn set_shape_base_props() {
let bytes = mem::bytes();