Improved Ship object to viewable & selectable object

This commit is contained in:
Jose Luis Cercos Pita
2012-01-06 14:04:56 +01:00
committed by Yorik van Havre
parent 321a6cfb6b
commit 028527427e
2 changed files with 477 additions and 429 deletions

View File

@@ -37,7 +37,7 @@ class TaskPanel:
def accept(self):
self.preview.clean()
# Create new ship instance
obj = App.ActiveDocument.addObject("App::FeaturePython","Ship")
obj = App.ActiveDocument.addObject("Part::FeaturePython","Ship")
ship = Instance.Ship(obj, self.faces)
Instance.ViewProviderShip(obj.ViewObject)
# Set main dimensions