Expose scenario tool state to captured removal guards
This commit is contained in:
@@ -595,7 +595,7 @@ impl State {
|
|||||||
}
|
}
|
||||||
created(command, draft.parent)
|
created(command, draft.parent)
|
||||||
}
|
}
|
||||||
pub(super) fn canvas_tool(&self, owner: Id) -> CanvasTool {
|
pub(crate) fn canvas_tool(&self, owner: Id) -> CanvasTool {
|
||||||
self.canvas_tool
|
self.canvas_tool
|
||||||
.filter(|(id, _)| *id == owner)
|
.filter(|(id, _)| *id == owner)
|
||||||
.map(|(_, tool)| tool)
|
.map(|(_, tool)| tool)
|
||||||
|
|||||||
Reference in New Issue
Block a user