Fixed list length value returning always zero.
Added separated pointer and count memory offsets to list attributes. Tried handling them
This commit is contained in:
@@ -77,16 +77,25 @@ namespace BlendFile {
|
||||
this._CountFieldIndex = value;
|
||||
}
|
||||
}
|
||||
private int _MemoryOffset;
|
||||
public virtual int MemoryOffset {
|
||||
private int _PtrMemoryOffset;
|
||||
public virtual int PtrMemoryOffset {
|
||||
get {
|
||||
return this._MemoryOffset;
|
||||
return this._PtrMemoryOffset;
|
||||
}
|
||||
set {
|
||||
this._MemoryOffset = value;
|
||||
this._PtrMemoryOffset = value;
|
||||
}
|
||||
}
|
||||
public DNAListAttribute(int Size, string OriginalType, string OriginalName, int OriginalIndex, string UnderlyingType, string CountFieldName, int CountFieldIndex, int MemoryOffset) :
|
||||
private int _CountMemoryOffset;
|
||||
public virtual int CountMemoryOffset {
|
||||
get {
|
||||
return this._CountMemoryOffset;
|
||||
}
|
||||
set {
|
||||
this._CountMemoryOffset = value;
|
||||
}
|
||||
}
|
||||
public DNAListAttribute(int Size, string OriginalType, string OriginalName, int OriginalIndex, string UnderlyingType, string CountFieldName, int CountFieldIndex, int PtrMemoryOffset, int CountMemoryOffset) :
|
||||
base(OriginalIndex, OriginalName) {
|
||||
this._Size = Size;
|
||||
this._OriginalType = OriginalType;
|
||||
@@ -95,7 +104,8 @@ namespace BlendFile {
|
||||
this._UnderlyingType = UnderlyingType;
|
||||
this._CountFieldName = CountFieldName;
|
||||
this._CountFieldIndex = CountFieldIndex;
|
||||
this._MemoryOffset = MemoryOffset;
|
||||
this._PtrMemoryOffset = PtrMemoryOffset;
|
||||
this._CountMemoryOffset = CountMemoryOffset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user