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:
Samuele Lorefice
2025-03-06 19:11:03 +01:00
parent 0bc7f73aee
commit fb50e3fa44
12 changed files with 75 additions and 48 deletions

View File

@@ -13,7 +13,7 @@ using System;
namespace BlendFile.DNA {
using BlendFile;
[DNAClassAttribute(311, "GreasePencil", 570)]
[DNAClassAttribute(311, "GreasePencil", 586)]
public class GreasePencil {
[DNAFieldAttribute(208, "ID", 0, "id", "ID", false, 0)]
public ID id;
@@ -45,9 +45,9 @@ namespace BlendFile.DNA {
public GreasePencilOnionSkinningSettings onion_skinning_settings;
[DNAFieldAttribute(8, "GreasePencilRuntimeHandle", 18, "*runtime", "GreasePencilRuntimeHandle", true, 562)]
public GreasePencilRuntimeHandle runtime;
[DNAListAttribute(8, "GreasePencilDrawingBase", "**drawing_array", 2, "GreasePencilDrawingBase", "drawing_array_size", 3, 570)]
[DNAListAttribute(8, "GreasePencilDrawingBase", "**drawing_array", 2, "GreasePencilDrawingBase", "drawing_array_size", 3, 570, 0)]
public System.Collections.Generic.List<GreasePencilDrawingBase> drawing_array;
[DNAListAttribute(8, "Material", "**material_array", 10, "Material", "material_array_size", 11, 570)]
[DNAListAttribute(8, "Material", "**material_array", 10, "Material", "material_array_size", 11, 578, 0)]
public System.Collections.Generic.List<Material> material_array;
public GreasePencil() {
this.id = default;