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(19, "IDPropertyUIDataBool", 20)]
[DNAClassAttribute(19, "IDPropertyUIDataBool", 28)]
public class IDPropertyUIDataBool {
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
public IDPropertyUIData @base;
@@ -21,7 +21,7 @@ namespace BlendFile.DNA {
public char[] _pad = new System.Char[3];
[DNAFieldAttribute(1, "int8_t", 4, "default_value", "int8_t", false, 19)]
public sbyte default_value;
[DNAListAttribute(8, "int8_t", "*default_array", 1, "int8_t", "default_array_len", 2, 20)]
[DNAListAttribute(8, "int8_t", "*default_array", 1, "int8_t", "default_array_len", 2, 20, 0)]
public System.Collections.Generic.List<sbyte> default_array;
public IDPropertyUIDataBool() {
this.@base = default;