From 75e68c6f8a1de4ad94c3466a7b364c8c9a6a59a6 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 29 Jan 2015 15:39:29 +0300 Subject: [PATCH] Issue #389 Undo/redo problem on sketch line creation Undoes the modification according to the previous commit. The modifications are purposed to one erroneous case. The previous fix is more correct. --- src/ModuleBase/ModuleBase_Operation.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index 3b799f668..96060b463 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -131,20 +131,6 @@ bool ModuleBase_Operation::hasObject(ObjectPtr theObj) const if (theObj == (*aIt)) return true; } - CompositeFeaturePtr aCompFeature = std::dynamic_pointer_cast(aFeature); - if (aCompFeature.get() != NULL) { - for (int i = 0; i < aCompFeature->numberOfSubs(); i++) { - FeaturePtr aSubFeature = aCompFeature->subFeature(i); - std::list aResults = aSubFeature->results(); - std::list::const_iterator aIt; - for (aIt = aResults.begin(); aIt != aResults.end(); ++aIt) { - if (theObj == (*aIt)) - return true; - } - if (aSubFeature == theObj) - return true; - } - } } return false; } -- 2.39.2