Improved Ship object to viewable & selectable object
This commit is contained in:
committed by
Yorik van Havre
parent
321a6cfb6b
commit
028527427e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user