mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 20:26:10 +02:00
♻️ Move rendering a single shape to the shape itself
This commit is contained in:
parent
001aa3f319
commit
967bc75a1c
5 changed files with 121 additions and 72 deletions
|
@ -307,7 +307,7 @@ pub extern "C" fn clear_shape_fills() {
|
|||
pub extern "C" fn set_shape_blend_mode(mode: i32) {
|
||||
let state = unsafe { STATE.as_mut() }.expect("got an invalid state pointer");
|
||||
if let Some(shape) = state.current_shape() {
|
||||
shape.set_blend_mode(shapes::BlendMode::from(mode));
|
||||
shape.set_blend_mode(render::BlendMode::from(mode));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue