Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for the bug #255: VTK viewer is not updated after modification of objects.
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_StreamOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_StreamOp.cxx
b/src/HYDROGUI/HYDROGUI_StreamOp.cxx
index 5882c2f868ac21fb9d092cc03a0c5d17f7ab7af7..bd7085f4efd7aa086b947998ae6fbd69c69bdfdb 100755
(executable)
--- a/
src/HYDROGUI/HYDROGUI_StreamOp.cxx
+++ b/
src/HYDROGUI/HYDROGUI_StreamOp.cxx
@@
-188,8
+188,10
@@
bool HYDROGUI_StreamOp::processApply( int& theUpdateFlags,
module()->setObjectVisible( HYDROGUI_Tool::GetActiveOCCViewId( module() ), myEditedObject, true );
}
module()->setObjectVisible( HYDROGUI_Tool::GetActiveOCCViewId( module() ), myEditedObject, true );
}
+ module()->setIsToUpdate( myEditedObject );
+
// Set update flags
// Set update flags
- theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced;
+ theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced
| UF_VTKViewer
;
return true;
}
return true;
}
@@
-366,11
+368,15
@@
void HYDROGUI_StreamOp::onAxisChanged( const QString& theNewAxis )
// Prepare data for intersection check
TopoDS_Face aPlane;
// Prepare data for intersection check
TopoDS_Face aPlane;
- if ( anAxis.IsNull() || !myEditedObject->BuildFace(anAxis, aPlane) ) {
+ if ( !myEditedObject->BuildFace(anAxis, aPlane) ) {
+ SUIT_MessageBox::critical( module()->getApp()->desktop(),
+ tr( "BAD_SELECTED_POLYLINE_TLT" ),
+ tr( "BAD_SELECTED_POLYLINE_MSG" ).arg( theNewAxis ) );
// To restore the old axis
updatePanelData();
return;
}
// To restore the old axis
updatePanelData();
return;
}
+
Standard_Real aPar(.0);
// Get list of profiles which do not intersect the axis
Standard_Real aPar(.0);
// Get list of profiles which do not intersect the axis