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(18, "IDPropertyUIDataInt", 52)]
[DNAClassAttribute(18, "IDPropertyUIDataInt", 60)]
public class IDPropertyUIDataInt {
[DNAFieldAttribute(16, "IDPropertyUIData", 0, "base", "IDPropertyUIData", false, 0)]
public IDPropertyUIData @base;
@@ -33,7 +33,7 @@ namespace BlendFile.DNA {
public int enum_items_num;
[DNAFieldAttribute(8, "IDPropertyUIDataEnumItem", 10, "*enum_items", "IDPropertyUIDataEnumItem", true, 44)]
public IDPropertyUIDataEnumItem enum_items;
[DNAListAttribute(8, "int", "*default_array", 1, "int", "default_array_len", 2, 52)]
[DNAListAttribute(8, "int", "*default_array", 1, "int", "default_array_len", 2, 52, 0)]
public System.Collections.Generic.List<int> default_array;
public IDPropertyUIDataInt() {
this.@base = default;