Fix bug when using material instance of material that uses GlobalSDF

This commit is contained in:
Wojtek Figat
2023-04-12 16:59:03 +02:00
parent 609217a3bb
commit abf68328e6
4 changed files with 5 additions and 190 deletions

View File

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