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:
-rw-r--r--io_mesh_uv_layout/export_uv_png.py1
-rw-r--r--io_scene_fbx/export_fbx.py2
-rw-r--r--render_povray/ui.py1
-rw-r--r--space_view3d_copy_attributes.py1
-rw-r--r--system_demo_mode/demo_mode.py17
5 files changed, 9 insertions, 13 deletions
diff --git a/io_mesh_uv_layout/export_uv_png.py b/io_mesh_uv_layout/export_uv_png.py
index a9e90541..ec92c4d8 100644
--- a/io_mesh_uv_layout/export_uv_png.py
+++ b/io_mesh_uv_layout/export_uv_png.py
@@ -34,7 +34,6 @@ def write(fw, mesh_source, image_width, image_height, opacity, face_iter_func):
mesh.materials.append(mat_solid)
tot_verts = 0
- face_lens = []
for f in mesh_source.faces:
tot_verts += len(f.vertices)
diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py
index f9578de6..c4b03ddb 100644
--- a/io_scene_fbx/export_fbx.py
+++ b/io_scene_fbx/export_fbx.py
@@ -32,7 +32,7 @@ import math # math.pi
import shutil # for file copying
import bpy
-from mathutils import Vector, Euler, Matrix
+from mathutils import Vector, Matrix
# XXX not used anymore, images are copied one at a time
diff --git a/render_povray/ui.py b/render_povray/ui.py
index 233cc601..2440409f 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -19,7 +19,6 @@
# <pep8 compliant>
import bpy
-from bpy.props import EnumProperty
# Use some of the existing buttons.
from bl_ui import properties_render
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index 18bc6937..9223f951 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -33,7 +33,6 @@ bl_info = {
'category': '3D View'}
import bpy
-import mathutils
from mathutils import Matrix, Vector
diff --git a/system_demo_mode/demo_mode.py b/system_demo_mode/demo_mode.py
index b51072d1..a2e64839 100644
--- a/system_demo_mode/demo_mode.py
+++ b/system_demo_mode/demo_mode.py
@@ -35,7 +35,6 @@ config = [
'''
import bpy
-import sys
import time
import tempfile
import os
@@ -298,15 +297,15 @@ class DemoMode(bpy.types.Operator):
def cleanup(self, disable=False):
demo_mode_timer_remove()
- self.__class__.first_run = True
+ __class__.first_run = True
if disable:
- self.__class__.enabled = False
+ __class__.enabled = False
DemoKeepAlive.remove()
def modal(self, context, event):
# print("DemoMode.modal", global_state["anim_cycles"])
- if not self.__class__.enabled:
+ if not __class__.enabled:
self.cleanup(disable=True)
return {'CANCELLED'}
@@ -317,8 +316,8 @@ class DemoMode(bpy.types.Operator):
return {'CANCELLED'}
# print(event.type)
- if self.__class__.first_run:
- self.__class__.first_run = False
+ if __class__.first_run:
+ __class__.first_run = False
demo_mode_init()
else:
@@ -337,12 +336,12 @@ class DemoMode(bpy.types.Operator):
return {'CANCELLED'}
# toggle
- if self.__class__.enabled and self.__class__.first_run == False:
+ if __class__.enabled and __class__.first_run == False:
# this actually cancells the previous running instance
# should never happen now, DemoModeControl is for this.
return {'CANCELLED'}
else:
- self.__class__.enabled = True
+ __class__.enabled = True
context.window_manager.modal_handler_add(self)
return {'RUNNING_MODAL'}
@@ -351,7 +350,7 @@ class DemoMode(bpy.types.Operator):
print("func:DemoMode.cancel")
# disable here means no running on file-load.
self.cleanup()
- return None
+ return {'CANCELLED'}
# call from DemoModeControl
@classmethod