mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 13:57:20 +02:00
🎉 Hidden layer support for wasm render
This commit is contained in:
parent
7c7ede9d0c
commit
07215357d6
5 changed files with 20 additions and 3 deletions
|
@ -263,6 +263,14 @@ pub extern "C" fn set_shape_opacity(opacity: f32) {
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn set_shape_hidden(hidden: bool) {
|
||||
let state = unsafe { STATE.as_mut() }.expect("got an invalid state pointer");
|
||||
if let Some(shape) = state.current_shape() {
|
||||
shape.hidden = hidden;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
init_gl();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue