Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-25 02:54:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-25 02:57:02 +0300
commita6189ebcbe0fcee59f72147fcc160f7b47234354 (patch)
tree413e8e4abdd5f82e55c2012e6a3f685d25de415e /io_mesh_ply/export_ply.py
parentcaf0c86b45f088a942641980fd10238f80a67f0a (diff)
PLY: cleanup style
Diffstat (limited to 'io_mesh_ply/export_ply.py')
-rw-r--r--io_mesh_ply/export_ply.py44
1 files changed, 23 insertions, 21 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py
index 942fbce1..3a5ef0ae 100644
--- a/io_mesh_ply/export_ply.py
+++ b/io_mesh_ply/export_ply.py
@@ -28,12 +28,13 @@ import bpy
import os
-def save_mesh(filepath,
- mesh,
- use_normals=True,
- use_uv_coords=True,
- use_colors=True,
- ):
+def save_mesh(
+ filepath,
+ mesh,
+ use_normals=True,
+ use_uv_coords=True,
+ use_colors=True,
+):
def rvec3d(v):
return round(v[0], 6), round(v[1], 6), round(v[2], 6)
@@ -112,11 +113,12 @@ def save_mesh(filepath,
if has_vcol:
color = col[j]
- color = (int(color[0] * 255.0),
- int(color[1] * 255.0),
- int(color[2] * 255.0),
- int(color[3] * 255.0),
- )
+ color = (
+ int(color[0] * 255.0),
+ int(color[1] * 255.0),
+ int(color[2] * 255.0),
+ int(color[3] * 255.0),
+ )
key = normal_key, uvcoord_key, color
vdict_local = vdict[vidx]
@@ -180,16 +182,16 @@ def save_mesh(filepath,
return {'FINISHED'}
-def save(operator,
- context,
- filepath="",
- use_mesh_modifiers=True,
- use_normals=True,
- use_uv_coords=True,
- use_colors=True,
- global_matrix=None
- ):
-
+def save(
+ operator,
+ context,
+ filepath="",
+ use_mesh_modifiers=True,
+ use_normals=True,
+ use_uv_coords=True,
+ use_colors=True,
+ global_matrix=None
+):
obj = context.active_object
if global_matrix is None: