diff --git a/autogen/convert_structs.py b/autogen/convert_structs.py index 34a27599d..61b82cf20 100644 --- a/autogen/convert_structs.py +++ b/autogen/convert_structs.py @@ -119,7 +119,7 @@ override_field_immutable = { "GraphNodeObject": [ "angle", "animInfo", "cameraToObject", "node", "pos", "prevAngle", "prevPos", "prevScale", "prevScaleTimestamp", "prevShadowPos", "prevShadowPosTimestamp", "prevThrowMatrix", "prevThrowMatrixTimestamp", "prevTimestamp", "scale", "shadowPos", "sharedChild", "skipInterpolationTimestamp", "throwMatrixPrev", "unk4C", ], "GraphNodeObjectParent": [ "sharedChild" ], "GraphNodePerspective": [ "unused" ], - "GraphNodeSwitchCase": [ "*" ], + "GraphNodeSwitchCase": [ "fnNode", "numCases", "unused" ], "ObjectWarpNode": [ "next "], "Animation": [ "length" ], "AnimationTable": [ "count" ], diff --git a/docs/lua/structs.md b/docs/lua/structs.md index 7bfdbdf21..80a271201 100644 --- a/docs/lua/structs.md +++ b/docs/lua/structs.md @@ -1459,7 +1459,7 @@ | ----- | ---- | ------ | | fnNode | [FnGraphNode](structs.md#FnGraphNode) | read-only | | numCases | `integer` | read-only | -| selectedCase | `integer` | read-only | +| selectedCase | `integer` | | | unused | `integer` | read-only | [:arrow_up_small:](#) diff --git a/src/pc/lua/smlua_cobject_autogen.c b/src/pc/lua/smlua_cobject_autogen.c index f0d22bb61..47489ebd1 100644 --- a/src/pc/lua/smlua_cobject_autogen.c +++ b/src/pc/lua/smlua_cobject_autogen.c @@ -1120,10 +1120,10 @@ static struct LuaObjectField sGraphNodeStartFields[LUA_GRAPH_NODE_START_FIELD_CO #define LUA_GRAPH_NODE_SWITCH_CASE_FIELD_COUNT 4 static struct LuaObjectField sGraphNodeSwitchCaseFields[LUA_GRAPH_NODE_SWITCH_CASE_FIELD_COUNT] = { - { "fnNode", LVT_COBJECT, offsetof(struct GraphNodeSwitchCase, fnNode), true, LOT_FNGRAPHNODE }, - { "numCases", LVT_S16, offsetof(struct GraphNodeSwitchCase, numCases), true, LOT_NONE }, - { "selectedCase", LVT_S16, offsetof(struct GraphNodeSwitchCase, selectedCase), true, LOT_NONE }, - { "unused", LVT_S32, offsetof(struct GraphNodeSwitchCase, unused), true, LOT_NONE }, + { "fnNode", LVT_COBJECT, offsetof(struct GraphNodeSwitchCase, fnNode), true, LOT_FNGRAPHNODE }, + { "numCases", LVT_S16, offsetof(struct GraphNodeSwitchCase, numCases), true, LOT_NONE }, + { "selectedCase", LVT_S16, offsetof(struct GraphNodeSwitchCase, selectedCase), false, LOT_NONE }, + { "unused", LVT_S32, offsetof(struct GraphNodeSwitchCase, unused), true, LOT_NONE }, }; #define LUA_GRAPH_NODE_TRANSLATION_FIELD_COUNT 2