Skip to content

Commit

Permalink
useobjectorigin scaling properly fixed
Browse files Browse the repository at this point in the history
Scale was only meant to change when using instance assets extension.
Reverts #50
  • Loading branch information
JoshQuake committed Aug 4, 2024
1 parent d2a3940 commit 0296cac
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 0296cac

Please sign in to comment.