diff --git a/hippolyzer/lib/base/templates.py b/hippolyzer/lib/base/templates.py index cfb4a84..1b55552 100644 --- a/hippolyzer/lib/base/templates.py +++ b/hippolyzer/lib/base/templates.py @@ -285,6 +285,12 @@ class WearableType(IntEnum): PHYSICS = 15 UNIVERSAL = 16 + @property + def asset_type(self) -> AssetType: + if self in (WearableType.HAIR, WearableType.SKIN, WearableType.EYES, WearableType.SHAPE): + return AssetType.BODYPART + return AssetType.CLOTHING + def _register_permissions_flags(message_name, block_name): def _wrapper(flag_cls): diff --git a/hippolyzer/lib/base/wearables.py b/hippolyzer/lib/base/wearables.py index 92c3146..7129494 100644 --- a/hippolyzer/lib/base/wearables.py +++ b/hippolyzer/lib/base/wearables.py @@ -16,7 +16,7 @@ from hippolyzer.lib.base.datatypes import UUID from hippolyzer.lib.base.helpers import get_resource_filename from hippolyzer.lib.base.inventory import InventorySaleInfo, InventoryPermissions from hippolyzer.lib.base.legacy_schema import SchemaBase, parse_schema_line, SchemaParsingError -from hippolyzer.lib.base.templates import WearableType, AssetType +from hippolyzer.lib.base.templates import WearableType LOG = logging.getLogger(__name__) _T = TypeVar("_T") @@ -77,12 +77,6 @@ class AvatarTEIndex(enum.IntEnum): def is_baked(self) -> bool: return self.name.endswith("_BAKED") - @property - def asset_type(self) -> AssetType: - if self in (WearableType.HAIR, WearableType.SKIN, WearableType.EYES, WearableType.SHAPE): - return AssetType.BODYPART - return AssetType.CLOTHING - @dataclasses.dataclass class VisualParam: