avatar: Merged gotoSleep if statement
This commit is contained in:
parent
3880f2049f
commit
736ced4aec
1 changed files with 1 additions and 3 deletions
|
@ -985,9 +985,7 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis
|
|||
return
|
||||
|
||||
def gotoSleep(self):
|
||||
if self.noSleep:
|
||||
return
|
||||
if not self.sleepFlag:
|
||||
if not self.sleepFlag and not self.noSleep:
|
||||
self.b_setAnimState('Sleep', self.animMultiplier)
|
||||
self.sleepFlag = 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue