mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
edges: weaken traversal requirement for applying resistance
This commit is contained in:
parent
c01bf3f319
commit
2262851237
1 changed files with 2 additions and 2 deletions
|
|
@ -446,7 +446,7 @@ edges_traverse_edge(struct edge current, struct edge target, struct edge obstacl
|
|||
current.offset, current.min, target.offset, target.min);
|
||||
|
||||
/* Motion misses when obstacle ends above start of quad segment */
|
||||
if (obstacle.max < lo) {
|
||||
if (obstacle.max <= lo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -455,5 +455,5 @@ edges_traverse_edge(struct edge current, struct edge target, struct edge obstacl
|
|||
current.offset, current.max, target.offset, target.max);
|
||||
|
||||
/* Motion hits when obstacle starts above the end of quad segment */
|
||||
return obstacle.min <= hi;
|
||||
return obstacle.min < hi;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue