Skip to content

Commit

Permalink
fixed scale issue, apply transform
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkj1 committed Jul 14, 2022
1 parent 46ec089 commit 6b4c3c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions latex2blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def import_latex(self, context, latex_code, custom_latex_path,
bpy.ops.object.join()
bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS', center='MEDIAN')
active_obj.scale = (600*text_scale, 600*text_scale, 600*text_scale)
bpy.ops.object.transform_apply(location = False, scale = True, rotation = False)
active_obj.location = (x_loc, y_loc, z_loc)
active_obj.rotation_euler = (math.radians(x_rot), math.radians(y_rot), math.radians(z_rot))
# Move curve to scene collection and delete the temp.svg collection. Then rename curve.
Expand Down

0 comments on commit 6b4c3c8

Please sign in to comment.