Skip to content

Commit

Permalink
Fix property generation to respect adhoc property name
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquegemignani committed Feb 21, 2023
1 parent df49918 commit 9ef4a9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PrimeWorldEditor
2 changes: 1 addition & 1 deletion parse_pwe_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ def get_prop_details(prop) -> PropDetails:

elif prop['type'] in ['Choice', 'Enum']:
default_value = prop["default_value"] if prop['has_default'] else 0
enum_name = _scrub_enum(prop["archetype"] or property_names.get(prop["id"]) or "")
enum_name = _scrub_enum(prop["archetype"] or prop["name"] or property_names.get(prop["id"]) or "")
format_specifier = "L"

uses_known_enum = enum_name in known_enums and (
Expand Down

0 comments on commit 9ef4a9a

Please sign in to comment.