mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-01 04:10:34 +05:00
0021031: EDF 1646 GEOM: Modify Location leads to Position driver failed
This commit is contained in:
parent
d197245868
commit
994771fd7d
@ -1236,6 +1236,9 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::PositionShape
|
|||||||
Handle(GEOM_Function) anOriginal = theObject->GetLastFunction();
|
Handle(GEOM_Function) anOriginal = theObject->GetLastFunction();
|
||||||
if (anOriginal.IsNull()) return NULL; //There is no function which creates an object to be set in position
|
if (anOriginal.IsNull()) return NULL; //There is no function which creates an object to be set in position
|
||||||
|
|
||||||
|
Handle(GEOM_Function) aSrcF;
|
||||||
|
if (!theStartLCS.IsNull()) aSrcF = theStartLCS->GetLastFunction();
|
||||||
|
|
||||||
//Add a Position function
|
//Add a Position function
|
||||||
Standard_Integer aType = POSITION_SHAPE;
|
Standard_Integer aType = POSITION_SHAPE;
|
||||||
if (theStartLCS.IsNull()) aType = POSITION_SHAPE_FROM_GLOBAL;
|
if (theStartLCS.IsNull()) aType = POSITION_SHAPE_FROM_GLOBAL;
|
||||||
@ -1252,7 +1255,7 @@ Handle(GEOM_Object) GEOMImpl_ITransformOperations::PositionShape
|
|||||||
aTI.SetShape(anOriginal);
|
aTI.SetShape(anOriginal);
|
||||||
aTI.SetEndLCS(theEndLCS->GetLastFunction());
|
aTI.SetEndLCS(theEndLCS->GetLastFunction());
|
||||||
if (!theStartLCS.IsNull())
|
if (!theStartLCS.IsNull())
|
||||||
aTI.SetStartLCS(theStartLCS->GetLastFunction());
|
aTI.SetStartLCS(aSrcF);
|
||||||
|
|
||||||
//Compute the Position
|
//Compute the Position
|
||||||
try {
|
try {
|
||||||
|
@ -633,7 +633,6 @@ bool TransformationGUI_PositionDlg::execute (ObjectList& objects)
|
|||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
for (int i = 0; i < myObjects.length(); i++) {
|
for (int i = 0; i < myObjects.length(); i++) {
|
||||||
if (toCreateCopy)
|
|
||||||
anObj = toCreateCopy ?
|
anObj = toCreateCopy ?
|
||||||
anOper->PositionShapeCopy(myObjects[i], myStartLCS, myEndLCS) :
|
anOper->PositionShapeCopy(myObjects[i], myStartLCS, myEndLCS) :
|
||||||
anOper->PositionShape(myObjects[i], myStartLCS, myEndLCS);
|
anOper->PositionShape(myObjects[i], myStartLCS, myEndLCS);
|
||||||
|
Loading…
Reference in New Issue
Block a user