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

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