fixed bug

This commit is contained in:
Zach 2015-05-24 18:56:45 -05:00
parent f25ad9caf8
commit 0f622cfe27

View file

@ -187,10 +187,11 @@ class DistributedGagTree(DistributedPlantBase.DistributedPlantBase):
self.sendUpdate('requestHarvest', [base.localAvatar.doId])
def hideItems(self):
seq = Parallel()
for item in self.fruits:
seq.append(LerpFunc(item.setAlphaScale, fromData=1, toData=0, duration=1))
seq.start()
if hasattr(self, 'fruits') and self.fruits:
seq = Parallel()
for item in self.fruits:
seq.append(LerpFunc(item.setAlphaScale, fromData=1, toData=0, duration=1))
seq.start()
def getTrack(self):
return self.gagTrack