Fixed wrong attribute position being modified. Regenerated code files
This commit is contained in:
@@ -25,7 +25,7 @@ namespace BlendFile.DNA {
|
|||||||
public sbyte layer_mix_mode;
|
public sbyte layer_mix_mode;
|
||||||
[DNAFieldAttribute(2, "uchar", 4, "_pad0[2]", "System.Byte[]", false, 70)]
|
[DNAFieldAttribute(2, "uchar", 4, "_pad0[2]", "System.Byte[]", false, 70)]
|
||||||
public byte[] _pad0 = new System.Byte[2];
|
public byte[] _pad0 = new System.Byte[2];
|
||||||
[DNAListAttribute(8, "ActionStrip", "**strip_array", 5, "ActionStrip", 80, "strip_array_num", 6, 72, 0)]
|
[DNAListAttribute(8, "ActionStrip", "**strip_array", 5, "ActionStrip", "int", "strip_array_num", 6, 72, 80)]
|
||||||
public System.Collections.Generic.List<ActionStrip> strip_array;
|
public System.Collections.Generic.List<ActionStrip> strip_array;
|
||||||
[DNAFieldAttribute(4, "uchar", 7, "_pad1[4]", "System.Byte[]", false, 84)]
|
[DNAFieldAttribute(4, "uchar", 7, "_pad1[4]", "System.Byte[]", false, 84)]
|
||||||
public byte[] _pad1 = new System.Byte[4];
|
public byte[] _pad1 = new System.Byte[4];
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace BlendFile.DNA {
|
|||||||
|
|
||||||
[DNAClassAttribute(68, "ActionStripKeyframeData", 16)]
|
[DNAClassAttribute(68, "ActionStripKeyframeData", 16)]
|
||||||
public class ActionStripKeyframeData {
|
public class ActionStripKeyframeData {
|
||||||
[DNAListAttribute(8, "ActionChannelBag", "**channelbag_array", 0, "ActionChannelBag", 8, "channelbag_array_num", 1, 0, 0)]
|
[DNAListAttribute(8, "ActionChannelBag", "**channelbag_array", 0, "ActionChannelBag", "int", "channelbag_array_num", 1, 0, 8)]
|
||||||
public System.Collections.Generic.List<ActionChannelBag> channelbag_array;
|
public System.Collections.Generic.List<ActionChannelBag> channelbag_array;
|
||||||
[DNAFieldAttribute(4, "uchar", 2, "_pad[4]", "System.Byte[]", false, 12)]
|
[DNAFieldAttribute(4, "uchar", 2, "_pad[4]", "System.Byte[]", false, 12)]
|
||||||
public byte[] _pad = new System.Byte[4];
|
public byte[] _pad = new System.Byte[4];
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace BlendFile.DNA {
|
|||||||
public ID id;
|
public ID id;
|
||||||
[DNAFieldAttribute(8, "AnimData", 1, "*adt", "AnimData", true, 208)]
|
[DNAFieldAttribute(8, "AnimData", 1, "*adt", "AnimData", true, 208)]
|
||||||
public AnimData adt;
|
public AnimData adt;
|
||||||
[DNAListAttribute(8, "GreasePencilDrawingBase", "**drawing_array", 2, "GreasePencilDrawingBase", 224, "drawing_array_size", 3, 216, 0)]
|
[DNAListAttribute(8, "GreasePencilDrawingBase", "**drawing_array", 2, "GreasePencilDrawingBase", "int", "drawing_array_size", 3, 216, 224)]
|
||||||
public System.Collections.Generic.List<GreasePencilDrawingBase> drawing_array;
|
public System.Collections.Generic.List<GreasePencilDrawingBase> drawing_array;
|
||||||
[DNAFieldAttribute(4, "char", 4, "_pad[4]", "System.Char[]", false, 228)]
|
[DNAFieldAttribute(4, "char", 4, "_pad[4]", "System.Char[]", false, 228)]
|
||||||
public char[] _pad = new System.Char[4];
|
public char[] _pad = new System.Char[4];
|
||||||
@@ -33,7 +33,7 @@ namespace BlendFile.DNA {
|
|||||||
public char[] _pad2 = new System.Char[4];
|
public char[] _pad2 = new System.Char[4];
|
||||||
[DNAFieldAttribute(8, "GreasePencilLayerTreeNode", 9, "*active_node", "GreasePencilLayerTreeNode", true, 496)]
|
[DNAFieldAttribute(8, "GreasePencilLayerTreeNode", 9, "*active_node", "GreasePencilLayerTreeNode", true, 496)]
|
||||||
public GreasePencilLayerTreeNode active_node;
|
public GreasePencilLayerTreeNode active_node;
|
||||||
[DNAListAttribute(8, "Material", "**material_array", 10, "Material", 512, "material_array_size", 11, 504, 0)]
|
[DNAListAttribute(8, "Material", "**material_array", 10, "Material", "short", "material_array_size", 11, 504, 512)]
|
||||||
public System.Collections.Generic.List<Material> material_array;
|
public System.Collections.Generic.List<Material> material_array;
|
||||||
[DNAFieldAttribute(2, "char", 12, "_pad3[2]", "System.Char[]", false, 514)]
|
[DNAFieldAttribute(2, "char", 12, "_pad3[2]", "System.Char[]", false, 514)]
|
||||||
public char[] _pad3 = new System.Char[2];
|
public char[] _pad3 = new System.Char[2];
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace BlendFile.DNA {
|
|||||||
public class IDPropertyUIDataBool {
|
public class IDPropertyUIDataBool {
|
||||||
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
|
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
|
||||||
public IDPropertyUIData @base;
|
public IDPropertyUIData @base;
|
||||||
[DNAListAttribute(8, "int8_t", "*default_array", 1, "int8_t", 24, "default_array_len", 2, 16, 0)]
|
[DNAListAttribute(8, "int8_t", "*default_array", 1, "int8_t", "int", "default_array_len", 2, 16, 24)]
|
||||||
public System.Collections.Generic.List<sbyte> default_array;
|
public System.Collections.Generic.List<sbyte> default_array;
|
||||||
[DNAFieldAttribute(3, "char", 3, "_pad[3]", "System.Char[]", false, 28)]
|
[DNAFieldAttribute(3, "char", 3, "_pad[3]", "System.Char[]", false, 28)]
|
||||||
public char[] _pad = new System.Char[3];
|
public char[] _pad = new System.Char[3];
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace BlendFile.DNA {
|
|||||||
public class IDPropertyUIDataFloat {
|
public class IDPropertyUIDataFloat {
|
||||||
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
|
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
|
||||||
public IDPropertyUIData @base;
|
public IDPropertyUIData @base;
|
||||||
[DNAListAttribute(8, "double", "*default_array", 1, "double", 24, "default_array_len", 2, 16, 0)]
|
[DNAListAttribute(8, "double", "*default_array", 1, "double", "int", "default_array_len", 2, 16, 24)]
|
||||||
public System.Collections.Generic.List<double> default_array;
|
public System.Collections.Generic.List<double> default_array;
|
||||||
[DNAFieldAttribute(4, "char", 3, "_pad[4]", "System.Char[]", false, 28)]
|
[DNAFieldAttribute(4, "char", 3, "_pad[4]", "System.Char[]", false, 28)]
|
||||||
public char[] _pad = new System.Char[4];
|
public char[] _pad = new System.Char[4];
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace BlendFile.DNA {
|
|||||||
public class IDPropertyUIDataInt {
|
public class IDPropertyUIDataInt {
|
||||||
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
|
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
|
||||||
public IDPropertyUIData @base;
|
public IDPropertyUIData @base;
|
||||||
[DNAListAttribute(8, "int", "*default_array", 1, "int", 24, "default_array_len", 2, 16, 0)]
|
[DNAListAttribute(8, "int", "*default_array", 1, "int", "int", "default_array_len", 2, 16, 24)]
|
||||||
public System.Collections.Generic.List<int> default_array;
|
public System.Collections.Generic.List<int> default_array;
|
||||||
[DNAFieldAttribute(4, "int", 3, "min", "int", false, 28)]
|
[DNAFieldAttribute(4, "int", 3, "min", "int", false, 28)]
|
||||||
public int min;
|
public int min;
|
||||||
|
|||||||
@@ -17,15 +17,15 @@ namespace BlendFile.DNA {
|
|||||||
public class bAction {
|
public class bAction {
|
||||||
[DNAFieldAttribute(208, "ID", 0, "id", "ID", false, 0)]
|
[DNAFieldAttribute(208, "ID", 0, "id", "ID", false, 0)]
|
||||||
public ID id;
|
public ID id;
|
||||||
[DNAListAttribute(8, "ActionLayer", "**layer_array", 1, "ActionLayer", 216, "layer_array_num", 2, 208, 0)]
|
[DNAListAttribute(8, "ActionLayer", "**layer_array", 1, "ActionLayer", "int", "layer_array_num", 2, 208, 216)]
|
||||||
public System.Collections.Generic.List<ActionLayer> layer_array;
|
public System.Collections.Generic.List<ActionLayer> layer_array;
|
||||||
[DNAFieldAttribute(4, "int", 3, "layer_active_index", "int", false, 220)]
|
[DNAFieldAttribute(4, "int", 3, "layer_active_index", "int", false, 220)]
|
||||||
public int layer_active_index;
|
public int layer_active_index;
|
||||||
[DNAListAttribute(8, "ActionSlot", "**slot_array", 4, "ActionSlot", 232, "slot_array_num", 5, 224, 0)]
|
[DNAListAttribute(8, "ActionSlot", "**slot_array", 4, "ActionSlot", "int", "slot_array_num", 5, 224, 232)]
|
||||||
public System.Collections.Generic.List<ActionSlot> slot_array;
|
public System.Collections.Generic.List<ActionSlot> slot_array;
|
||||||
[DNAFieldAttribute(4, "int", 6, "last_slot_handle", "int", false, 236)]
|
[DNAFieldAttribute(4, "int", 6, "last_slot_handle", "int", false, 236)]
|
||||||
public int last_slot_handle;
|
public int last_slot_handle;
|
||||||
[DNAListAttribute(8, "ActionStripKeyframeData", "**strip_keyframe_data_array", 7, "ActionStripKeyframeData", 248, "strip_keyframe_data_array_num", 8, 240, 0)]
|
[DNAListAttribute(8, "ActionStripKeyframeData", "**strip_keyframe_data_array", 7, "ActionStripKeyframeData", "int", "strip_keyframe_data_array_num", 8, 240, 248)]
|
||||||
public System.Collections.Generic.List<ActionStripKeyframeData> strip_keyframe_data_array;
|
public System.Collections.Generic.List<ActionStripKeyframeData> strip_keyframe_data_array;
|
||||||
[DNAFieldAttribute(4, "char", 9, "_pad0[4]", "System.Char[]", false, 252)]
|
[DNAFieldAttribute(4, "char", 9, "_pad0[4]", "System.Char[]", false, 252)]
|
||||||
public char[] _pad0 = new System.Char[4];
|
public char[] _pad0 = new System.Char[4];
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace BlendFile.DNA {
|
|||||||
public short pathflag;
|
public short pathflag;
|
||||||
[DNAFieldAttribute(16, "ListBase", 14, "collections", "ListBase", false, 288)]
|
[DNAFieldAttribute(16, "ListBase", 14, "collections", "ListBase", false, 288)]
|
||||||
public ListBase collections;
|
public ListBase collections;
|
||||||
[DNAListAttribute(8, "BoneCollection", "**collection_array", 15, "BoneCollection", 312, "collection_array_num", 16, 304, 0)]
|
[DNAListAttribute(8, "BoneCollection", "**collection_array", 15, "BoneCollection", "int", "collection_array_num", 16, 304, 312)]
|
||||||
public System.Collections.Generic.List<BoneCollection> collection_array;
|
public System.Collections.Generic.List<BoneCollection> collection_array;
|
||||||
[DNAFieldAttribute(4, "int", 17, "collection_root_count", "int", false, 316)]
|
[DNAFieldAttribute(4, "int", 17, "collection_root_count", "int", false, 316)]
|
||||||
public int collection_root_count;
|
public int collection_root_count;
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ namespace CodeGenerator {
|
|||||||
var x = ctd.Members.OfType<CodeMemberField>().FirstOrDefault(member => member.Name.ParseFName() == listPointerName);
|
var x = ctd.Members.OfType<CodeMemberField>().FirstOrDefault(member => member.Name.ParseFName() == listPointerName);
|
||||||
|
|
||||||
if (x != null) //Update the existing list attribute
|
if (x != null) //Update the existing list attribute
|
||||||
x.CustomAttributes[0].Arguments[5] = new(new CodePrimitiveExpression(totalSize));
|
x.CustomAttributes[0].Arguments[9] = new(new CodePrimitiveExpression(totalSize));
|
||||||
else //Store the data for when the list attribute is made
|
else //Store the data for when the list attribute is made
|
||||||
listCountOffsets.Add(fName, totalSize);
|
listCountOffsets.Add(fName, totalSize);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user