mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 09:52:34 +01:00
extra check
This commit is contained in:
parent
95d231378d
commit
0733fce16c
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ TCAD.TWO.AddSegmentTool.prototype.mousewheel = function(e) {
|
|||
};
|
||||
|
||||
TCAD.TWO.AddSegmentTool.prototype.keydown = function(e) {
|
||||
if (this.multi && e.keyCode == 27) {
|
||||
if (this.multi && && this.line != null && e.keyCode == 27) {
|
||||
this.viewer.remove(this.line);
|
||||
this.viewer.refresh();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue