mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-15 03:30:36 +05:00
Fix error in creation information - wrong operation type in case of MakeEdge
This commit is contained in:
parent
5b5f4d6982
commit
05d0cb1c4c
@ -43,6 +43,21 @@
|
|||||||
|
|
||||||
#include <Standard_ConstructionError.hxx>
|
#include <Standard_ConstructionError.hxx>
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
Handle(GEOM_Object) GetOwner( const TDF_Label& l )
|
||||||
|
{
|
||||||
|
TDF_Label label = l;
|
||||||
|
// object is stored on a grandfather label of a driver label
|
||||||
|
if ( !label.IsNull() )
|
||||||
|
label = label.Father();
|
||||||
|
if ( !label.IsNull() )
|
||||||
|
label = label.Father();
|
||||||
|
|
||||||
|
return GEOM_Object::GetObject( label );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : GetID
|
//function : GetID
|
||||||
//purpose :
|
//purpose :
|
||||||
@ -179,8 +194,7 @@ GetCreationInformation(std::string& theOperationName,
|
|||||||
AddParam( theParams, "Dz", aCI.GetDZ() );
|
AddParam( theParams, "Dz", aCI.GetDZ() );
|
||||||
break;
|
break;
|
||||||
case VECTOR_TWO_PNT: {
|
case VECTOR_TWO_PNT: {
|
||||||
TDF_Label label = Label();
|
Handle(GEOM_Object) obj = GetOwner( Label() );
|
||||||
Handle(GEOM_Object) obj = GEOM_Object::GetObject( label );
|
|
||||||
if ( !obj.IsNull() && obj->GetType() == GEOM_EDGE )
|
if ( !obj.IsNull() && obj->GetType() == GEOM_EDGE )
|
||||||
theOperationName = "EDGE";
|
theOperationName = "EDGE";
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user