Fix Gameplay Global usage in material with material instance error

This commit is contained in:
Wojtek Figat
2022-01-26 23:08:48 +01:00
parent e3c613e6e3
commit e11410c5d1

View File

@@ -92,6 +92,7 @@ namespace FlaxEditor.Surface
case MaterialParameterType.GPUTexture: return typeof(GPUTexture);
case MaterialParameterType.Matrix: return typeof(Matrix);
case MaterialParameterType.ChannelMask: return typeof(ChannelMask);
case MaterialParameterType.GameplayGlobal: return typeof(GameplayGlobals);
case MaterialParameterType.TextureGroupSampler: return typeof(int);
default: throw new ArgumentOutOfRangeException(nameof(type), type, null);
}