mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 03:17:43 +00:00
ui-contract: part_senses is not suite-only (a collection row reads it for pressing parts)
This commit is contained in:
@@ -685,7 +685,6 @@ pub(crate) fn part_bounds(ctx: &Context, owner: Id, part: craft_behavior::PartRe
|
||||
}
|
||||
|
||||
/// Whether the part `part` of `owner` (the arena root or a member) senses all of `sense` in last pass's shape record.
|
||||
#[cfg(feature = "suite")]
|
||||
pub(crate) fn part_senses(ctx: &Context, owner: Id, part: craft_behavior::PartRef, sense: craft_behavior::Sense) -> bool {
|
||||
let viewport = pass::current_viewport(ctx);
|
||||
PerViewport::<Shapes>::with(ctx, viewport, |record| {
|
||||
|
||||
Reference in New Issue
Block a user