INT PAL 0052666: Presentation disappears from the 3D Viewer after that as an operation is applied to the object(some fix)

This commit is contained in:
imn 2015-04-08 12:33:26 +03:00
parent 999aef7d55
commit 2960cb2164
4 changed files with 15 additions and 3 deletions

View File

@ -1990,7 +1990,7 @@ bool EntityGUI_FieldDlg::execute()
QList<GEOM::GeomObjPtr> EntityGUI_FieldDlg::getSourceObjects() QList<GEOM::GeomObjPtr> EntityGUI_FieldDlg::getSourceObjects()
{ {
QList<GEOM::GeomObjPtr> res; QList<GEOM::GeomObjPtr> res;
GEOM::GeomObjPtr aGeomObjPtr(myShape); GEOM::GeomObjPtr aGeomObjPtr(myField->GetShape());
res << aGeomObjPtr; res << aGeomObjPtr;
return res; return res;
} }

View File

@ -467,3 +467,14 @@ bool GenerationGUI_ThicknessDlg::execute (ObjectList& objects)
return true; return true;
} }
//=================================================================================
// function : getSourceObjects
// purpose : virtual method to get source objects
//=================================================================================
QList<GEOM::GeomObjPtr> GenerationGUI_ThicknessDlg::getSourceObjects()
{
QList<GEOM::GeomObjPtr> res(myFaces);
res << myObject;
return res;
}

View File

@ -50,6 +50,7 @@ protected:
virtual GEOM::GEOM_IOperations_ptr createOperation(); virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& ); virtual bool isValid( QString& );
virtual bool execute( ObjectList& ); virtual bool execute( ObjectList& );
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private: private:
void Init(); void Init();

View File

@ -337,6 +337,6 @@ bool OperationGUI_TransferDataDlg::execute (ObjectList& objects)
QList<GEOM::GeomObjPtr> OperationGUI_TransferDataDlg::getSourceObjects() QList<GEOM::GeomObjPtr> OperationGUI_TransferDataDlg::getSourceObjects()
{ {
QList<GEOM::GeomObjPtr> res; QList<GEOM::GeomObjPtr> res;
res << myObject1 << myObject2; res << myObject1;
return res; return res;
} }