mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +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>
|
||||
|
||||
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
|
||||
//purpose :
|
||||
@ -179,8 +194,7 @@ GetCreationInformation(std::string& theOperationName,
|
||||
AddParam( theParams, "Dz", aCI.GetDZ() );
|
||||
break;
|
||||
case VECTOR_TWO_PNT: {
|
||||
TDF_Label label = Label();
|
||||
Handle(GEOM_Object) obj = GEOM_Object::GetObject( label );
|
||||
Handle(GEOM_Object) obj = GetOwner( Label() );
|
||||
if ( !obj.IsNull() && obj->GetType() == GEOM_EDGE )
|
||||
theOperationName = "EDGE";
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user