(self)
return
Updates the reference motion and synchronizes the state of the reference

    model with the current motion frame.
Updates the reference motion and synchronizes the state of the reference
Updates the reference motion and synchronizes the state of the reference
def _update_ref_motion(self):
    """Updates the reference motion and synchronizes the state of the reference

    model with the current motion frame.
    """
    time = self._get_motion_time()
    change_clip = self._check_change_clip()

    if change_clip:
      new_motion_id = self._sample_ref_motion()
      self._change_ref_motion(new_motion_id)
      self._reset_clip_change_time()
      self._motion_time_offset = self._sample_time_offset()

    motion = self.get_active_motion()
    new_phase = motion.calc_phase(time)

    if (self._enable_cycle_sync and (new_phase < self._prev_motion_phase)) \
        or change_clip:
      self._sync_ref_origin(
          sync_root_position=True, sync_root_rotation=change_clip)

    self._update_ref_state()
    self._update_ref_model()

    self._prev_motion_phase = new_phase

    return
def _update_ref_motion ( self ) : time = self . _get_motion_time ( ) change_clip = self . _check_change_clip ( ) if change_clip : new_motion_id = self . _sample_ref_motion ( ) self . _change_ref_motion ( new_motion_id ) self . _reset_clip_change_time ( ) self . _motion_time_offset = self . _sample_time_offset ( ) motion = self . get_active_motion ( ) new_phase = motion . calc_phase ( time ) if ( self . _enable_cycle_sync and ( new_phase < self . _prev_motion_phase ) ) or change_clip : self . _sync_ref_origin ( sync_root_position = True , sync_root_rotation = change_clip ) self . _update_ref_state ( ) self . _update_ref_model ( ) self . _prev_motion_phase = new_phase return