Sketcher: minor enhance in sketch interaction with body
This commit is contained in:
committed by
Stefan Tröger
parent
bf94c3ebf7
commit
8b62680fe7
@@ -4480,8 +4480,10 @@ namespace SketcherGui {
|
||||
|
||||
// Note: its better to search the support of the sketch in case the sketch support is a base plane
|
||||
Part::BodyBase* body = Part::BodyBase::findBodyOf(sketch);
|
||||
if ((body != NULL) && (Part::BodyBase::findBodyOf(pObj) == body) && body->isAfter(pObj, sketch)) {
|
||||
if ( body && body->hasFeature ( pObj ) && body->isAfter ( pObj, sketch ) ) {
|
||||
// Don't allow selection after the sketch in the same body
|
||||
// NOTE: allowness of features in other bodies is handled by SketchObject::isExternalAllowed()
|
||||
// TODO may be this should be in SketchObject::isExternalAllowed() (2015-08-07, Fat-Zer)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user