mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 23:18:04 -05:00
Merge pull request #970 from Santarh/throwTeim
Throw not supported texture types
This commit is contained in:
commit
bd3209cc1b
|
|
@ -43,18 +43,8 @@ namespace VRMShaders
|
|||
// A texture has "Normal map" TextureType is ALWAYS converted into normalized normal pixel by Unity.
|
||||
// So we must copy it.
|
||||
return false;
|
||||
case TextureImporterType.GUI:
|
||||
case TextureImporterType.Sprite:
|
||||
case TextureImporterType.Cursor:
|
||||
case TextureImporterType.Cubemap:
|
||||
case TextureImporterType.Cookie:
|
||||
case TextureImporterType.Lightmap:
|
||||
case TextureImporterType.HDRI:
|
||||
case TextureImporterType.Advanced:
|
||||
case TextureImporterType.SingleChannel:
|
||||
// Not Supported TextureImporterType
|
||||
return false;
|
||||
default:
|
||||
// Not Supported TextureImporterType
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user