private void AccumulateValue(ExpressionKey key, float value) { m_valueMap[key] = value; VRM10Expression clip; if (!m_clipMap.TryGetValue(key, out clip)) { return; } m_morphTargetBindingMerger.AccumulateValue(clip, value); m_materialValueBindingMerger.AccumulateValue(clip, value); }
/// <summary> /// 即時に反映しない。後にApplyによって反映する /// </summary> /// <param name="key"></param> /// <param name="value"></param> public void AccumulateValue(ExpressionKey key, float value) { m_valueMap[key] = value; VRM10Expression clip; if (!m_clipMap.TryGetValue(key, out clip)) { return; } if (clip.IsBinary) { value = Mathf.Round(value); } m_morphTargetBindingMerger.AccumulateValue(clip, value); m_materialValueBindingMerger.AccumulateValue(clip, value); }