Skip to content

Commit

Permalink
useobjectorigin scaling properly fixed (poly-hammer#64)
Browse files Browse the repository at this point in the history
Scale was only meant to change when using instance assets extension.
Reverts poly-hammer#50
  • Loading branch information
JoshQuake authored Aug 4, 2024
1 parent d2a3940 commit e7e537e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/addons/send2ue/core/io/fbx_b3.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def fbx_data_object_elements(root, ob_obj, scene_data):
if asset_object == current_object:
# clear rotation and scale only if spawning actor
# https://github.com/EpicGamesExt/BlenderTools/issues/610
rot = (0, 0, 0)
scale = (1.0, 1.0, 1.0)
if bpy.context.scene.send2ue.extensions.instance_assets.place_in_active_level:
rot = (0, 0, 0)
scale = (1.0 * SCALE_FACTOR, 1.0 * SCALE_FACTOR, 1.0 * SCALE_FACTOR)
else:
loc = Vector((0, 0, 0))

Expand Down
5 changes: 3 additions & 2 deletions src/addons/send2ue/core/io/fbx_b4.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,9 @@ def fbx_data_object_elements(root, ob_obj, scene_data):
if asset_object == current_object:
# clear rotation and scale only if spawning actor
# https://github.com/EpicGamesExt/BlenderTools/issues/610
rot = (0, 0, 0)
scale = (1.0, 1.0, 1.0)
if bpy.context.scene.send2ue.extensions.instance_assets.place_in_active_level:
rot = (0, 0, 0)
scale = (1.0 * SCALE_FACTOR, 1.0 * SCALE_FACTOR, 1.0 * SCALE_FACTOR)
else:
loc = Vector((0, 0, 0))

Expand Down

0 comments on commit e7e537e

Please sign in to comment.