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_VTKPrsDisplayer.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.cxx
b/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.cxx
index a75f52a9966f60e4309a4e5df1f50506ff69fd02..d4317fcd46887b389b71c6fd9b411d4635e2820e 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.cxx
+++ b/
src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.cxx
@@
-200,6
+200,12
@@
void HYDROGUI_VTKPrsDisplayer::Display( const HYDROData_SequenceOfObjects& theOb
bool anIsInserted = ( aPrs != 0 );
if( anIsVisible && ( !aPrs || aPrs->getIsToUpdate() || theIsForced ) )
{
bool anIsInserted = ( aPrs != 0 );
if( anIsVisible && ( !aPrs || aPrs->getIsToUpdate() || theIsForced ) )
{
+ // Erase the presentation in the view because of the problem with GEOM_Actor upadting on second SetShape.
+ if ( aPrs )
+ {
+ aViewer->Erase( aPrs, true );
+ }
+ // Update the presentation
if( HYDROGUI_VTKPrsDriver* aDriver = getDriver( (size_t)aViewer, anObj ) )
{
if( aDriver->Update( anObj, aPrs ) && aPrs && !anIsInserted )
if( HYDROGUI_VTKPrsDriver* aDriver = getDriver( (size_t)aViewer, anObj ) )
{
if( aDriver->Update( anObj, aPrs ) && aPrs && !anIsInserted )
@@
-265,7
+271,7
@@
void HYDROGUI_VTKPrsDisplayer::Display( const HYDROData_SequenceOfObjects& theOb
}
else if ( isChanged )
{
}
else if ( isChanged )
{
- aView->Repaint();
+ aView->Repaint(
true
);
}
}
}
}
}
}