Created utilities to purge usless data inside the Ship instance

This commit is contained in:
Jose Luis Cercos Pita
2015-10-16 12:58:23 +02:00
parent 8132d90b7d
commit cafdaccd4b
4 changed files with 94 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ class TaskPanel:
weights = ship.Weights[:]
weights.append(obj.Name)
ship.Weights = weights
ship.Proxy.cleanWeights(ship)
ship.Proxy.cleanTanks(ship)
ship.Proxy.cleanLoadConditions(ship)
App.ActiveDocument.recompute()
return True