def onAnimateBeginEvent(self, e): if len(Timer.getRecords('Animate')): self.use_sofa_profiler_timer = True else: Timer.setEnabled("timer", True) Timer.begin("timer") # Update motion if self.total_time < self.motion_time: with self.dummy_points.position.writeableArray() as wa: wa[:] += self.motion_delta
def onAnimateBeginEvent(self, e): if len(Timer.getRecords('Animate')): self.use_sofa_profiler_timer = True else: Timer.setEnabled("cg_timer", True) Timer.begin("cg_timer")