1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0031452: Impossible to get Backup of the attribute and status that attribute was modified before commit transaction

Method TObj_Object::HasModifications() was added to get flag that object or it's children was modified in the current open transaction
This commit is contained in:
gka
2020-09-14 21:46:11 +03:00
committed by bugmaster
parent 7f7d121f90
commit 65da6e2e3e
4 changed files with 92 additions and 0 deletions

View File

@@ -1631,3 +1631,13 @@ Standard_Integer TObj_Object::GetOrder() const
order = GetLabel().Tag();
return order;
}
//=======================================================================
//function : HasModifications
//purpose :
//=======================================================================
Standard_Boolean TObj_Object::HasModifications() const
{
return (!IsAlive() ? Standard_False : GetLabel().MayBeModified() );
}

View File

@@ -365,6 +365,14 @@ class TObj_Object : public Standard_Transient
//! sets order of object
virtual Standard_EXPORT Standard_Boolean SetOrder( const Standard_Integer& theIndx );
public:
/**
* Public methods to check modifications of the object since last commit
*/
//! Returns true if object attributes or or his children were modified in the current open transaction
Standard_EXPORT Standard_Boolean HasModifications() const;
protected:
/**
* Protected Methods copy data of object to other object