mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 15:22:09 +02:00
prevent warnings on embedded materials
This commit is contained in:
parent
f9f2b6f8ac
commit
3c78e48f88
2 changed files with 5 additions and 0 deletions
|
@ -1105,6 +1105,11 @@ class AvatarExporter : MonoBehaviour {
|
|||
string materialName = material.name;
|
||||
string shaderName = material.shader.name;
|
||||
|
||||
// if this material isn't mapped externally then ignore it
|
||||
if (!materialMappings.ContainsValue(materialName)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// don't store any material data for unsupported shader types
|
||||
if (Array.IndexOf(SUPPORTED_SHADERS, shaderName) == -1) {
|
||||
if (!unsupportedShaderMaterials.Contains(materialName)) {
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue