修复:直线偏移丢失颜色

pull/1563/head
ChenX 3 years ago
parent 0a79af68f2
commit 1efd10d84c

@ -92,11 +92,13 @@ export class Command_Offset implements Command
//直线在当前视图下偏移
let sp = cu.StartPoint;
let ep = cu.EndPoint;
let color = cu.ColorIndex;
let newUCS = oldUCS.clone().setPosition(sp);
cu = new Line();
cu.OCS = newUCS;
cu.StartPoint = sp;
cu.EndPoint = ep;
cu.ColorIndex = color;
app.Editor.UCSMatrix = newUCS;
}

@ -185,7 +185,8 @@ export class Viewer
antialias: true,//antialias:true/false是否开启反锯齿
precision: "highp",//precision:highp/mediump/lowp着色精度选择
alpha: false,//alpha:true/false是否可以设置背景色透明
logarithmicDepthBuffer: true
logarithmicDepthBuffer: true,
powerPreference: "high-performance",
// premultipliedAlpha: false,//?
// stencil: false,//?
// preserveDrawingBuffer: true,//preserveDrawingBuffer:true/false是否保存绘图缓冲

Loading…
Cancel
Save