From: adv Date: Tue, 17 Dec 2013 07:02:59 +0000 (+0000) Subject: Creation of obstacles corrected. X-Git-Tag: BR_hydro_v_0_6~75 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2376a365faec2bda67784ce385594f90b8c06dd;p=modules%2Fhydro.git Creation of obstacles corrected. --- diff --git a/src/HYDROGUI/HYDROGUI_ImportGeomObjectOp.cxx b/src/HYDROGUI/HYDROGUI_ImportGeomObjectOp.cxx index 44f3476d..b9938829 100644 --- a/src/HYDROGUI/HYDROGUI_ImportGeomObjectOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ImportGeomObjectOp.cxx @@ -189,6 +189,8 @@ bool HYDROGUI_ImportGeomObjectOp::processApply( int& theUpdateFlags, // Set shape anObstacle->SetShape3D( aShape ); + anObstacle->Update(); + // Set operation status anIsOk = true; theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced; diff --git a/src/HYDROGUI/HYDROGUI_ImportObstacleFromFileOp.cxx b/src/HYDROGUI/HYDROGUI_ImportObstacleFromFileOp.cxx index 350c6d66..9735ef8a 100644 --- a/src/HYDROGUI/HYDROGUI_ImportObstacleFromFileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ImportObstacleFromFileOp.cxx @@ -170,6 +170,8 @@ bool HYDROGUI_ImportObstacleFromFileOp::processApply( int& theUpdateFlags, anObstacle->SetName( anObstacleName ); } + anObstacle->Update(); + // Set operation status anIsOk = true; theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced;;