mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 00:31:39 +02:00
🐛 Fix wasm state warning
This commit is contained in:
parent
b299a732c0
commit
ca86137d0f
1 changed files with 2 additions and 4 deletions
|
@ -138,11 +138,9 @@ pub extern "C" fn use_shape(a: u32, b: u32, c: u32, d: u32) {
|
|||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn set_parent(a: u32, b: u32, c: u32, d: u32) {
|
||||
with_state!(state, {
|
||||
with_current_shape!(state, |shape: &mut Shape| {
|
||||
let id = uuid_from_u32_quartet(a, b, c, d);
|
||||
with_current_shape!(state, |shape: &mut Shape| {
|
||||
shape.set_parent(id);
|
||||
});
|
||||
shape.set_parent(id);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue