修复:框选会往右上方加一个像素导致的选择错误

pull/2059/head
ChenX 2 years ago
parent 7ce1c261f2
commit deba736236

@ -27,7 +27,7 @@ export class SelectBox extends SelectSetBase
{
super(view);
this._SelectBox.setFromPoints([p1, p2]);
this._SelectBox.max.add(new Vector2(1, 1));//避免盒子为空
// this._SelectBox.max.add(new Vector2(1, 1)); //避免盒子为空 (这个代码导致了框选不精确)
this._BoxCheck = new BoxCheckIntersect(this._SelectBox);
this._SelectType = selectType;

Loading…
Cancel
Save