mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 06:19:47 -05:00
Merge pull request #2123 from notargs/remove_linq_snippets
Remove linq snippets disused on unity update
This commit is contained in:
commit
e32d760492
|
|
@ -42,7 +42,7 @@ namespace UniVRM10
|
|||
/// <param name="expressionWeights"></param>
|
||||
public void SetValues(Dictionary<ExpressionKey, float> expressionWeights)
|
||||
{
|
||||
foreach (var (key, weight) in expressionWeights.Select(kv => (kv.Key, kv.Value)))
|
||||
foreach (var (key, weight) in expressionWeights)
|
||||
{
|
||||
AccumulateValue(key, weight);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ namespace UniVRM10
|
|||
|
||||
public void Replace(IDictionary<VRM10Expression, VRM10Expression> map)
|
||||
{
|
||||
foreach (var (k, v) in map.Select(kv => (kv.Key, kv.Value)))
|
||||
foreach (var (k, v) in map)
|
||||
{
|
||||
Replace(k, v);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ namespace UniVRM10
|
|||
|
||||
public void SetWeights(IEnumerable<KeyValuePair<ExpressionKey, float>> weights)
|
||||
{
|
||||
foreach (var (expressionKey, weight) in weights.Select(kv => (kv.Key, kv.Value)))
|
||||
foreach (var (expressionKey, weight) in weights)
|
||||
{
|
||||
if (_inputWeights.ContainsKey(expressionKey))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user