fix 修正自定义设备拖拽时的效率问题 #53
@@ -3030,16 +3030,14 @@ Acad::ErrorStatus AecDbEwEquipment::Draw3d(AcGiDraw &dc) const
|
|||||||
|
|
||||||
DrawInfArrow(dc);
|
DrawInfArrow(dc);
|
||||||
|
|
||||||
if (!dc.IsDragging())//解开后崩溃
|
|
||||||
{
|
|
||||||
if (Has3DBuffer())
|
if (Has3DBuffer())
|
||||||
{
|
{
|
||||||
AcDbEntity* pEnt = NULL;
|
AcDbEntity *pEnt = NULL;
|
||||||
const AcDbVoidPtrArray &ar3D = Get3DBuffer();
|
const AcDbVoidPtrArray &ar3D = Get3DBuffer();
|
||||||
for (int i = 0;i < ar3D.length();i++)
|
for (int i = 0; i < ar3D.length(); i++)
|
||||||
{
|
{
|
||||||
pEnt = (AcDbEntity*)ar3D.at(i);
|
pEnt = (AcDbEntity *)ar3D.at(i);
|
||||||
if ( IsActive() )
|
if (IsActive())
|
||||||
{
|
{
|
||||||
BackupColorIndex(pEnt);
|
BackupColorIndex(pEnt);
|
||||||
pEnt->setColorIndex(nColor);
|
pEnt->setColorIndex(nColor);
|
||||||
@@ -3055,7 +3053,7 @@ Acad::ErrorStatus AecDbEwEquipment::Draw3d(AcGiDraw &dc) const
|
|||||||
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