From 63f5249894375486abc14457e207492bab2b3db5 Mon Sep 17 00:00:00 2001 From: ChenX Date: Mon, 17 May 2021 15:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E5=AE=9E=E4=BD=93=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E6=97=B6,PM0=E7=BB=93=E6=9E=9C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/MoveToWCS0.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Add-on/MoveToWCS0.ts b/src/Add-on/MoveToWCS0.ts index 038d83775..284079cef 100644 --- a/src/Add-on/MoveToWCS0.ts +++ b/src/Add-on/MoveToWCS0.ts @@ -4,7 +4,7 @@ import { app } from "../ApplicationServices/Application"; import { Entity } from "../DatabaseServices/Entity/Entity"; import { Command } from "../Editor/CommandMachine"; import { PromptStatus } from "../Editor/PromptResult"; -import { comparePoint, GetBox } from '../Geometry/GeUtils'; +import { GetBox } from '../Geometry/GeUtils'; import { HotCMD } from '../Hot/HotCommand'; @@ -49,7 +49,7 @@ export class Command_PackageMove implements Command for (let i = 0; i < ents.length; i++) { let en = ents[i]; - en.TempData = { i, b: GetBox(en.DrawObject), u: false }; + en.TempData = { i, b: en.Visible ? GetBox(en.DrawObject) : en.BoundingBox, u: false }; } let fb = new Flatbush(ents.length);