Changed attribute builder to derive from correct class, also added method to pass base class parameters using string refs. Regenerated the files
This commit is contained in:
@@ -13,7 +13,7 @@ using System;
|
||||
namespace BlendFile {
|
||||
|
||||
[AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Struct)]
|
||||
public class DNAClassAttribute : System.Attribute {
|
||||
public class DNAClassAttribute : BlendFile.DNAAttribute {
|
||||
private int _OriginalIndex;
|
||||
public virtual int OriginalIndex {
|
||||
get {
|
||||
@@ -41,7 +41,8 @@ namespace BlendFile {
|
||||
this._Size = value;
|
||||
}
|
||||
}
|
||||
public DNAClassAttribute(int OriginalIndex, string OriginalName, int Size) {
|
||||
public DNAClassAttribute(int OriginalIndex, string OriginalName, int Size) :
|
||||
base(OriginalIndex, OriginalName) {
|
||||
this._OriginalIndex = OriginalIndex;
|
||||
this._OriginalName = OriginalName;
|
||||
this._Size = Size;
|
||||
|
||||
Reference in New Issue
Block a user