Skip to content

Commit

Permalink
use game in detailed actor props
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis002 committed Jan 5, 2025
1 parent bd4bc84 commit 8dae77a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fast64_internal/oot/actor/properties.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 8dae77a

Please sign in to comment.