Ver Fonte

exporter works with both JSON Loader and Object Loader; added comments for new method added;

Ryan Lee há 8 anos atrás
pai
commit
b36e16b81e

+ 4 - 4
utils/exporters/blender/addons/io_three/exporter/api/mesh.py

@@ -23,11 +23,11 @@ _XY_Z = "_XY_Z"
 
 
 def flip_axes (a, dir=XYZ):
+    """
+
+    :function to swap vectors:
 
-    # if dir == XZ_Y:
-    #     v = (v.x, v.z, -v.y)
-    # elif dir == X_ZY:
-    #     v = (v.x, -v.z, v.y)
+    """
 
     if dir == XZ_Y:
         a = (a[0], a[2], -a[1])