Skip to content

Commit

Permalink
Merge pull request mrdoob#12268 from cg-cnu/blender-constants
Browse files Browse the repository at this point in the history
moved flip axis constants to constants.py
  • Loading branch information
mrdoob authored Sep 25, 2017
2 parents d1d5e57 + 2e33304 commit 31d8b0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions utils/exporters/blender/addons/io_three/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,3 +387,10 @@
DOUBLE_SIDED = 'doubleSided'

EXPORT_SETTINGS_KEY = 'threeExportSettings'

# flips vectors

XZ_Y = "XZ_Y"
X_ZY = "X_ZY"
XYZ = "XYZ"
_XY_Z = "_XY_Z"
10 changes: 4 additions & 6 deletions utils/exporters/blender/addons/io_three/exporter/api/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@

# flips vectors

#TODO: add these strings into constants.py

XZ_Y = "XZ_Y"
X_ZY = "X_ZY"
XYZ = "XYZ"
_XY_Z = "_XY_Z"
XZ_Y = constants.XZ_Y
X_ZY = constants.X_ZY
XYZ = constants.XYZ
_XY_Z = constants._XY_Z


def flip_axes (a, dir=XYZ):
Expand Down

0 comments on commit 31d8b0a

Please sign in to comment.