source typo fixes pt4 (only on py3 merged code)
This commit is contained in:
@@ -164,7 +164,7 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
|
||||
if ( selection.size () >= 1 ) {
|
||||
App::DocumentObject *feature = selection.front().pObject;
|
||||
PartDesign::Body *body = PartDesignGui::getBodyFor ( feature, false );
|
||||
// lote of assertion so feature sould be marked as a tip
|
||||
// lote of assertion so feature should be marked as a tip
|
||||
if ( selection.size () == 1 && feature && (
|
||||
feature->isDerivedFrom ( PartDesign::Body::getClassTypeId () ) ||
|
||||
( feature->isDerivedFrom ( PartDesign::Feature::getClassTypeId () ) && body ) ||
|
||||
@@ -191,7 +191,7 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
|
||||
if ( addMoveFeature && !PartDesign::Body::isAllowed ( sel.pObject ) ) {
|
||||
addMoveFeature = false;
|
||||
}
|
||||
// if all at lest one selected feature doesn't belongs to the same body
|
||||
// if all at least one selected feature doesn't belong to the same body
|
||||
// disable the menu entry
|
||||
if ( addMoveFeatureInTree && !body->hasObject ( sel.pObject ) ) {
|
||||
addMoveFeatureInTree = false;
|
||||
|
||||
Reference in New Issue
Block a user