More work on restrictions

This commit is contained in:
blitzmann
2016-07-04 10:49:57 -04:00
parent fe8c3a4957
commit 10c79ac812
8 changed files with 37 additions and 5 deletions

View File

@@ -195,6 +195,12 @@ class DroneView(d.Display):
def addItem(self, event):
sFit = service.Fit.getInstance()
fitID = self.mainFrame.getActiveFit()
fit = sFit.getFit(fitID)
if fit.isStructure:
return
trigger = sFit.addDrone(fitID, event.itemID)
if trigger:
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))