mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 18:02:50 +01:00
fix loop pick bug
This commit is contained in:
parent
251f9dde82
commit
ccd33ca7e0
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ export class LoopPickTool extends Tool {
|
|||
this.loops.clear();
|
||||
const points = [];
|
||||
this.viewer.accept((obj) => {
|
||||
if (obj._class == 'TCAD.TWO.EndPoint' && obj.parent && obj.parent.a && obj.parent.b) {
|
||||
if (obj._class == 'TCAD.TWO.EndPoint' && obj.parent &&
|
||||
obj.parent.a && obj.parent.b && (obj.parent.a == obj || obj.parent.b == obj)) {
|
||||
points.push(obj);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue