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

@@ -125,6 +125,9 @@ def load():
lcs = ship.LoadConditions[:]
lcs.append(s.Name)
ship.LoadConditions = lcs
ship.Proxy.cleanWeights(ship)
ship.Proxy.cleanTanks(ship)
ship.Proxy.cleanLoadConditions(ship)
# Recompute to take the changes
App.activeDocument().recompute()