Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pipe validator fix
[modules/shaper.git]
/
src
/
PartSet
/
PartSet_SketcherMgr.cpp
diff --git
a/src/PartSet/PartSet_SketcherMgr.cpp
b/src/PartSet/PartSet_SketcherMgr.cpp
index 8bb6f0083b6b9ec93f3ac70d95676d383dd40991..22c4b653a1c586ccf11b1a317a6da2db49a12372 100755
(executable)
--- a/
src/PartSet/PartSet_SketcherMgr.cpp
+++ b/
src/PartSet/PartSet_SketcherMgr.cpp
@@
-36,6
+36,7
@@
#include <ModuleBase_OperationFeature.h>
#include <ModuleBase_Operation.h>
#include <ModuleBase_WidgetEditor.h>
#include <ModuleBase_OperationFeature.h>
#include <ModuleBase_Operation.h>
#include <ModuleBase_WidgetEditor.h>
+#include <ModuleBase_ViewerPrs.h>
#include <GeomDataAPI_Point2D.h>
#include <GeomDataAPI_Point2D.h>
@@
-890,18
+891,13
@@
void PartSet_SketcherMgr::startSketch(ModuleBase_Operation* theOperation)
myModule->workshop()->viewer()->addSelectionFilter(myPlaneFilter);
bool aHasPlane = false;
std::shared_ptr<GeomAPI_Pln> aPln;
myModule->workshop()->viewer()->addSelectionFilter(myPlaneFilter);
bool aHasPlane = false;
std::shared_ptr<GeomAPI_Pln> aPln;
- if (aFOperation->isEditOperation()) {
- // If it is editing of sketch then it means that plane is already defined
- aPln = PartSet_Tools::sketchPlane(myCurrentSketch);
- if (aPln.get())
- aHasPlane = true;
- }
+ aPln = PartSet_Tools::sketchPlane(myCurrentSketch);
myPlaneFilter->setPlane(aPln);
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY));
myPlaneFilter->setPlane(aPln);
Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY));
- // all
sketch objects should be activated in the sketch selection modes by edit operation start
- //
in case of creation operation, there is an active widget, which activates own selection mode
- if (a
FOperation->isEditOperation() && aHasPlane
)
+ // all
displayed objects should be activated in current selection modes according to switched
+ //
plane filter
+ if (a
Pln.get()
)
aConnector->activateModuleSelectionModes();
}
aConnector->activateModuleSelectionModes();
}