Merge pull request 'fix 修正自定义设备拖拽时的效率问题' (#53) from home-lenovo-legion-r9000/修正自定义设备拖拽效率 into main
Reviewed-on: #53 Reviewed-by: gjm <littleoldpan@163.com>
This commit was merged in pull request #53.
This commit is contained in:
commit
a72b38c4e5
1 file changed
+19
-21
@@ -3065,32 +3065,30 @@ Acad::ErrorStatus AecDbEwEquipment::Draw3d(AcGiDraw &dc) const
|
|||||||
|
|
||||||
DrawInfArrow(dc);
|
DrawInfArrow(dc);
|
||||||
|
|
||||||
if (!dc.IsDragging())//解开后崩溃
|
if (Has3DBuffer())
|
||||||
{
|
{
|
||||||
if (Has3DBuffer())
|
AcDbEntity *pEnt = NULL;
|
||||||
{
|
const AcDbVoidPtrArray &ar3D = Get3DBuffer();
|
||||||
AcDbEntity* pEnt = NULL;
|
for (int i = 0; i < ar3D.length(); i++)
|
||||||
const AcDbVoidPtrArray &ar3D = Get3DBuffer();
|
{
|
||||||
for (int i = 0;i < ar3D.length();i++)
|
pEnt = (AcDbEntity *)ar3D.at(i);
|
||||||
|
if (IsActive())
|
||||||
{
|
{
|
||||||
pEnt = (AcDbEntity*)ar3D.at(i);
|
BackupColorIndex(pEnt);
|
||||||
if ( IsActive() )
|
pEnt->setColorIndex(nColor);
|
||||||
{
|
|
||||||
BackupColorIndex(pEnt);
|
|
||||||
pEnt->setColorIndex(nColor);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetBackupColorIndex(pEnt);
|
|
||||||
}
|
|
||||||
dc.DrawEntity(*pEnt);
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetBackupColorIndex(pEnt);
|
||||||
|
}
|
||||||
|
dc.DrawEntity(*pEnt);
|
||||||
|
}
|
||||||
|
|
||||||
dc.SetLayer(idLay);
|
dc.SetLayer(idLay);
|
||||||
dc.SetColor(nCrBk);
|
dc.SetColor(nCrBk);
|
||||||
return Acad::eOk;
|
return Acad::eOk;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Draw3dSolid(&dc, nColor);
|
Draw3dSolid(&dc, nColor);
|
||||||
dc.SetColor(nColor);
|
dc.SetColor(nColor);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user