mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Emit parameterless constructor for vectors
This commit is contained in:
@@ -80,7 +80,7 @@ struct VectorAttribute<T, ComponentCount> : Attribute, IComptimeTypeApply where
|
||||
private void GenerateConstructors(Type type)
|
||||
{
|
||||
// Default constructor
|
||||
//Compiler.EmitTypeBody(type, "public this() => this = default;\n\n");
|
||||
Compiler.EmitTypeBody(type, "public this() => this = default;\n\n");
|
||||
|
||||
// Single constructor
|
||||
GenerateSingleConstructor(type);
|
||||
|
||||
Reference in New Issue
Block a user