Skip to content

Commit

Permalink
Updated t3dpy to handle inline vector properties more robustly
Browse files Browse the repository at this point in the history
Also fixed an issue where package prefixed class types would not be
recognized. The package is now stripped from the class name.
  • Loading branch information
cmbasnett committed Sep 8, 2024
1 parent 5da862b commit 3fbed69
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bdk_addon/blender_manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version = "1.0.0"
# Example of manifest file for a Blender extension
# Change the values according to your extension
id = "bdk_addon"
version = "1.0.1"
version = "1.0.2"
name = "Unreal BDK"
tagline = "Makes Blender a level editor for games running on Unreal 1 and 2"
maintainer = "Colin Basnett <[email protected]>"
Expand Down Expand Up @@ -40,7 +40,7 @@ platforms = ["windows-x64"]
# https://docs.blender.org/manual/en/dev/extensions/python_wheels.html
wheels = [
"./wheels/bdk_py-0.1.0-cp311-none-win_amd64.whl",
"./wheels/t3dpy-0.1.6-cp311-none-win_amd64.whl",
"./wheels/t3dpy-0.1.7-cp311-none-win_amd64.whl",
"./wheels/networkx-3.3-py3-none-any.whl",
]

Expand Down
7 changes: 5 additions & 2 deletions bdk_addon/t3d/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,11 @@ def on_properties_hydrated(cls, t3d_actor: T3dObject, bpy_object: Object, contex
}


def get_actor_type_importer(actor_type: str) -> Type[ActorImporter]:
return __actor_type_importers__.get(actor_type, DefaultActorImporter)
def get_actor_type_importer(actor_class: str) -> Type[ActorImporter]:
# In forked versions of UnrealEd, the actor class name is prefixed with the package name.
# We only care about the class name for now, so we'll split the string on the last period.
actor_class = actor_class.split('.')[-1]
return __actor_type_importers__.get(actor_class, DefaultActorImporter)


def height_map_data_from_image(image: Image) -> np.array:
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 3fbed69

Please sign in to comment.