From 8dae77a4d7e932792c44b75cde8b045e7b8aa0eb Mon Sep 17 00:00:00 2001 From: Yanis002 <35189056+Yanis002@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:05:34 +0100 Subject: [PATCH] use game in detailed actor props --- fast64_internal/oot/actor/properties.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fast64_internal/oot/actor/properties.py b/fast64_internal/oot/actor/properties.py index 52b44aa7b..6fc31ec8c 100644 --- a/fast64_internal/oot/actor/properties.py +++ b/fast64_internal/oot/actor/properties.py @@ -1,3 +1,5 @@ +import bpy + from bpy.types import Object, PropertyGroup, UILayout from bpy.utils import register_class, unregister_class from bpy.props import EnumProperty, StringProperty, IntProperty, BoolProperty, CollectionProperty, PointerProperty @@ -44,7 +46,7 @@ def get_prop_name(actor_key: str, param_type: str, param_subtype: str, param_ind "Message": "naviMsg", } suffix = param_to_prop_suffix[param_type] if param_type != "Flag" else flag_to_prop_suffix[param_subtype] - return f"{actor_key}.{suffix}{param_index}" # e.g.: ``en_test.props1`` + return f"{bpy.context.scene.gameEditorMode.lower()}.{actor_key}.{suffix}{param_index}" # e.g.: ``en_test.props1`` def initOOTActorProperties():