Added BaseType "Attribute" to DNAClassAttribute generator function and regenerated the source.
This commit is contained in:
@@ -13,7 +13,7 @@ using System;
|
||||
namespace BlendFile {
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class DNAClassAttribute {
|
||||
public class DNAClassAttribute : System.Attribute {
|
||||
private int _originalIndex;
|
||||
public virtual int OriginalIndex {
|
||||
get {
|
||||
|
||||
@@ -245,8 +245,10 @@ namespace CodeGenerator {
|
||||
IsClass = true,
|
||||
Attributes = MemberAttributes.Public
|
||||
};
|
||||
ctd.BaseTypes.Add(new CodeTypeReference(typeof(Attribute)));
|
||||
ctd.CustomAttributes.Add(new("AttributeUsage",
|
||||
new CodeAttributeArgument(new CodeSnippetExpression("AttributeTargets.Class"))));
|
||||
|
||||
|
||||
var cmf = new CodeMemberField(typeof(int), "_originalIndex") {
|
||||
Attributes = MemberAttributes.Private
|
||||
|
||||
Reference in New Issue
Block a user