mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-27 21:34:38 -05:00
ContainsKey
This commit is contained in:
@@ -80,11 +80,14 @@ namespace UniVRM10
|
||||
m_materialMap.Add(binding.MaterialName, item);
|
||||
}
|
||||
var propName = GetProperty(binding.BindType);
|
||||
item.PropMap.Add(binding.BindType, new PropItem
|
||||
if (!item.PropMap.ContainsKey(binding.BindType))
|
||||
{
|
||||
Name = propName,
|
||||
DefaultValues = item.Material.GetVector(propName),
|
||||
});
|
||||
item.PropMap.Add(binding.BindType, new PropItem
|
||||
{
|
||||
Name = propName,
|
||||
DefaultValues = item.Material.GetVector(propName),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var binding in kv.Value.MaterialUVBindings)
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace UniVRM10.Test
|
||||
});
|
||||
controller.Vrm.Expression.Aa.MaterialColorBindings = src.ToArray();
|
||||
|
||||
// ok if no exception
|
||||
var r = new VRM10ControllerRuntime(controller);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user