added more verbose logging for updating step for debugging.
This commit is contained in:
parent
9abfdab767
commit
100891e604
1 changed files with 3 additions and 1 deletions
|
|
@ -45,6 +45,8 @@ class StateSingleton:
|
||||||
|
|
||||||
def update_step(self):
|
def update_step(self):
|
||||||
if self.current_expression == self.desired_expression: # already at desire expression
|
if self.current_expression == self.desired_expression: # already at desire expression
|
||||||
|
if self.current_expression == self.states[0]:
|
||||||
|
self.transition_count = 0
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.current_expression == self.states[0]: # Transition from "open" state to another state
|
if self.current_expression == self.states[0]: # Transition from "open" state to another state
|
||||||
|
|
@ -88,7 +90,7 @@ class StateSingleton:
|
||||||
print("animation not yet ready")
|
print("animation not yet ready")
|
||||||
return
|
return
|
||||||
self.update_step()
|
self.update_step()
|
||||||
print("at step: " + str(self.transition_count) + " from default in expression: " + str(self.desired_expression))
|
print("at step: " + str(self.transition_count) + " current expression: " + str(self.desired_expression) + " desired expression: " + str(self.desired_expression))
|
||||||
self.draw_face()
|
self.draw_face()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue