修复:实体隐藏时,PM0结果错误

pull/1502/MERGE
ChenX 3 years ago
parent d71ae280a6
commit 63f5249894

@ -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);

Loading…
Cancel
Save