优化:避免缩放值为0

pull/1809/MERGE
ChenX 3 years ago
parent 50a67e946d
commit a86a06743f

@ -927,11 +927,14 @@ export class TransformServicess implements EditorService
app.Editor.MouseCtrl.EnableMouseUpDoit = false; //响应鼠标抬起就绘制
if (scaleRes.Status === PromptStatus.OK)
{
if (!equaln(scaleRes.Distance, 0))
{
let mtx = matrixScale(scaleRes.Distance, pos);
for (let en of this._Ents)
en.ApplyMatrix(mtx);
}
}
for (let en of this._Ents)
en.DrawObject.visible = true;

Loading…
Cancel
Save