From e2376a365faec2bda67784ce385594f90b8c06dd Mon Sep 17 00:00:00 2001 From: adv Date: Tue, 17 Dec 2013 07:02:59 +0000 Subject: [PATCH] Creation of obstacles corrected. --- src/HYDROGUI/HYDROGUI_ImportGeomObjectOp.cxx | 2 ++ src/HYDROGUI/HYDROGUI_ImportObstacleFromFileOp.cxx | 2 ++ 2 files changed, 4 insertions(+) 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;; -- 2.39.2