浏览代码

suppresse some pylint warnings

1. too many branches in export_godot.py
2. cyclic import in physics.py
Jason0214 6 年之前
父节点
当前提交
9102db3e1e
共有 3 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      io_scene_godot/converters/physics.py
  2. 1 0
      io_scene_godot/export_godot.py
  3. 0 1
      io_scene_godot/structures.py

+ 1 - 0
io_scene_godot/converters/physics.py

@@ -110,6 +110,7 @@ def export_collision_shape(escn_file, export_settings, node, parent_gd_node,
 
 def generate_mesh_array(escn_file, export_settings, node, convex=False):
     """Generates godots PolygonShape from an object"""
+    # pylint: disable-msg=cyclic-import
     from .mesh import (MeshConverter, MeshResourceKey)
     mesh_converter = MeshConverter(node, export_settings)
     if convex:

+ 1 - 0
io_scene_godot/export_godot.py

@@ -171,6 +171,7 @@ class GodotExporter:
         return True
 
     def export_scene(self):
+        # pylint: disable-msg=too-many-branches
         """Decide what objects to export, and export them!"""
         logging.info("Exporting scene: %s", self.scene.name)
 

+ 0 - 1
io_scene_godot/structures.py

@@ -111,7 +111,6 @@ class FileEntry(collections.OrderedDict):
         self.entry_type = entry_type
         self.heading = collections.OrderedDict(heading_dict)
 
-        # NOTE: contents is unused. Remove?
         # This string is copied verbaitum, so can be used for custom writing
         self.contents = ''