mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027619: Improvement on manuipulation of data by TPrsStd_AISPresentation attribute.
The branch contains a fix on Undo/Redo for TPrsStd_AISPresentation attribute + an opportunity to deselect the interactive object. getData() now calls FindAttribute(), the field myData disappeared. A fix of regression on bug73_3. A cleverer solution.
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
#include <TDF_Tool.hxx>
|
||||
#include <TDF_ChildIterator.hxx>
|
||||
#include <TDF_Tool.hxx>
|
||||
#include <TPrsStd_AISViewer.hxx>
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
// pour propagate
|
||||
#include <TDocStd_XLinkTool.hxx>
|
||||
|
||||
@@ -227,6 +229,11 @@ static Standard_Integer DDocStd_Undo (Draw_Interpretor& di,Standard_Integer n, c
|
||||
if (!D->Redo()) di << "Redo not done\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Redraw the viewer.
|
||||
Handle(AIS_InteractiveContext) IC;
|
||||
if (TPrsStd_AISViewer::Find(D->Main(), IC))
|
||||
IC->UpdateCurrentViewer();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user