#ifdef DEB_CALCULATION
cout << "\nOld shape(" << i << ") = " << aShape.TShape() <<endl;
#endif
- const TopoDS_Shape& aModifiedShape = aSewing.Modified( aShape );
- if ( aModifiedShape.IsNull() )
- continue;
+
+ TopoDS_Shape aModifiedShape = aShape;
+ if ( aSewing.IsModified( aShape ) )
+ aModifiedShape = aSewing.Modified( aShape );
+ else if ( aSewing.IsModifiedSubShape( aShape ) )
+ aModifiedShape = aSewing.ModifiedSubShape( aShape );
#ifdef DEB_CALCULATION
const TopLoc_Location& aL1 = aShape.Location();