Cancelling the just created surface deletes it
Now if the user creates a surface, the cancel in the widget deletes it. If an already existing one is opened for editing, cancel rejects the user change in fill type, but the surface remains.
This commit is contained in:
@@ -141,3 +141,12 @@ void BSurf::createFace(const Handle_Geom_BoundedSurface &aSurface)
|
||||
if (aFace.IsNull()) { Standard_Failure::Raise("Resulting Face is null"); }
|
||||
this->Shape.setValue(aFace);
|
||||
}
|
||||
|
||||
void BSurf::correcteInvalidFillType()
|
||||
{
|
||||
int ftype = filltype.getValue();
|
||||
if(ftype == InvalidStyle)
|
||||
{
|
||||
filltype.setValue(StretchStyle);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user