Drop byte from VS types
This commit is contained in:
@@ -38,7 +38,6 @@ namespace FlaxEditor.Modules.SourceCodeEditing
|
|||||||
{
|
{
|
||||||
// Add in-build types
|
// Add in-build types
|
||||||
_list.Add(new ScriptType(typeof(bool)));
|
_list.Add(new ScriptType(typeof(bool)));
|
||||||
_list.Add(new ScriptType(typeof(byte)));
|
|
||||||
_list.Add(new ScriptType(typeof(short)));
|
_list.Add(new ScriptType(typeof(short)));
|
||||||
_list.Add(new ScriptType(typeof(ushort)));
|
_list.Add(new ScriptType(typeof(ushort)));
|
||||||
_list.Add(new ScriptType(typeof(int)));
|
_list.Add(new ScriptType(typeof(int)));
|
||||||
|
|||||||
@@ -3063,15 +3063,9 @@ void Variant::AllocStructure()
|
|||||||
AsBlob.Data = Allocator::Allocate(AsBlob.Length);
|
AsBlob.Data = Allocator::Allocate(AsBlob.Length);
|
||||||
type.Struct.Ctor(AsBlob.Data);
|
type.Struct.Ctor(AsBlob.Data);
|
||||||
}
|
}
|
||||||
else if (typeName == "System.Byte")
|
|
||||||
{
|
|
||||||
// Hack for byte
|
|
||||||
AsBlob.Length = 1;
|
|
||||||
AsBlob.Data = Allocator::Allocate(AsBlob.Length);
|
|
||||||
*((byte*)AsBlob.Data) = 0;
|
|
||||||
}
|
|
||||||
else if (typeName == "System.Int16" || typeName == "System.UInt16")
|
else if (typeName == "System.Int16" || typeName == "System.UInt16")
|
||||||
{
|
{
|
||||||
|
// [Deprecated on 10.05.2021, expires on 10.05.2023]
|
||||||
// Hack for 16bit int
|
// Hack for 16bit int
|
||||||
AsBlob.Length = 2;
|
AsBlob.Length = 2;
|
||||||
AsBlob.Data = Allocator::Allocate(AsBlob.Length);
|
AsBlob.Data = Allocator::Allocate(AsBlob.Length);
|
||||||
|
|||||||
Reference in New Issue
Block a user