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:
@@ -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() );
|
||||
}
|
@@ -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
|
||||
|
Reference in New Issue
Block a user