mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 02:13:58 +01:00
check the way for checking being marked
This commit is contained in:
parent
61bf3ec671
commit
9ed5cc8c1e
1 changed files with 2 additions and 5 deletions
|
|
@ -372,12 +372,9 @@ Viewer.prototype.mark = function(obj, style) {
|
|||
}
|
||||
obj.marked = style;
|
||||
|
||||
for (let i = 0; i < this.selected.length; i++) {
|
||||
if (obj.id == this.selected[i].id) {
|
||||
return;
|
||||
}
|
||||
if (this.selected.indexOf(obj) == -1) {
|
||||
this.selected.push(obj);
|
||||
}
|
||||
this.selected.push(obj);
|
||||
};
|
||||
|
||||
Viewer.prototype.getActiveLayer = function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue