def generate(self): if not self.bFake: PetManager.acquirePetManager() DistributedSmoothNode.DistributedSmoothNode.generate(self) self.trickIval = None self.movieTrack = None self.traitList = [0] * PetTraits.PetTraits.NumTraits self.requiredMoodComponents = {} self.setBlend(frameBlend=base.wantSmoothAnims)
def generate(self): DistributedPet.notify.debug('generate(), fake=%s' % self.bFake) if not self.bFake: PetManager.acquirePetManager() DistributedSmoothNode.DistributedSmoothNode.generate(self) self.trickIval = None self.movieTrack = None self.traitList = [0] * PetTraits.PetTraits.NumTraits self.requiredMoodComponents = {}
def generate(self): DistributedPet.notify.debug('generate(), fake=%s' % self.bFake) if not self.bFake: PetManager.acquirePetManager() DistributedSmoothNode.DistributedSmoothNode.generate(self) self.trickIval = None self.movieTrack = None # this will be filled in during generation self.traitList = [0] * PetTraits.PetTraits.NumTraits # cache required mood components until we have a self.mood to give # them to self.requiredMoodComponents = {}
def delete(self): DistributedPet.notify.debug('delete(), fake=%s' % self.bFake) if self.trickIval is not None: self.trickIval.finish() del self.trickIval if self.movieTrack is not None: self.movieTrack.finish() del self.movieTrack taskMgr.remove(self.uniqueName('Pet-Movie-%s' % self.getDoId())) self.clearMovie() for funcName in self.__funcsToDelete: del self.__dict__[funcName] Pet.Pet.delete(self) DistributedSmoothNode.DistributedSmoothNode.delete(self) if not self.bFake: PetManager.releasePetManager()
def delete(self): self.setBlend(frameBlend=base.wantSmoothAnims) if self.trickIval is not None: self.trickIval.finish() del self.trickIval if self.movieTrack is not None: self.movieTrack.finish() del self.movieTrack taskMgr.remove(self.uniqueName('Pet-Movie-%s' % self.getDoId())) self.clearMovie() for funcName in self.__funcsToDelete: del self.__dict__[funcName] Pet.Pet.delete(self) DistributedSmoothNode.DistributedSmoothNode.delete(self) if not self.bFake: PetManager.releasePetManager()