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>2011-07-11 02:57:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-11 02:57:27 +0400
commit488e1da935d55330be55eb30b4605b993dd65dbd (patch)
treed4437d5e74e962482a4a6aa5336212c257f0245e /add_mesh_extra_objects
parent8012053e1e178c8cabb133e05dc1e36d52908fa7 (diff)
cleanup
- remove/comment unused variables - remove unused imports - fixed some bugs using incorrect variables
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/add_mesh_extra_objects.py2
-rw-r--r--add_mesh_extra_objects/add_mesh_gears.py6
-rw-r--r--add_mesh_extra_objects/add_mesh_gemstones.py4
-rw-r--r--add_mesh_extra_objects/add_mesh_twisted_torus.py3
4 files changed, 2 insertions, 13 deletions
diff --git a/add_mesh_extra_objects/add_mesh_extra_objects.py b/add_mesh_extra_objects/add_mesh_extra_objects.py
index c5caa120..83ce4fa7 100644
--- a/add_mesh_extra_objects/add_mesh_extra_objects.py
+++ b/add_mesh_extra_objects/add_mesh_extra_objects.py
@@ -26,8 +26,6 @@ from bpy.props import *
# new mesh (as used in from_pydata).
# name ... Name of the new mesh (& object).
def create_mesh_object(context, verts, edges, faces, name):
- scene = context.scene
- obj_act = scene.objects.active
# Create new mesh
mesh = bpy.data.meshes.new(name)
diff --git a/add_mesh_extra_objects/add_mesh_gears.py b/add_mesh_extra_objects/add_mesh_gears.py
index a04e6beb..a8f7aac6 100644
--- a/add_mesh_extra_objects/add_mesh_gears.py
+++ b/add_mesh_extra_objects/add_mesh_gears.py
@@ -66,7 +66,6 @@ add_mesh_torus() (distributed with Blender).
"""
import bpy
-import mathutils
from math import *
from bpy.props import *
@@ -75,9 +74,6 @@ from bpy.props import *
# new mesh (as used in from_pydata).
# name ... Name of the new mesh (& object).
def create_mesh_object(context, verts, edges, faces, name):
- scene = context.scene
- obj_act = scene.objects.active
-
# Create new mesh
mesh = bpy.data.meshes.new(name)
@@ -250,7 +246,7 @@ def add_tooth(a, t, d, radius, Ad, De, base, p_angle, rack=0, crown=0.0):
def add_spoke(a, t, d, radius, De, base, s, w, l, gap=0, width=19):
Rd = radius - De
Rb = Rd - base
- Rl = Rb
+ # Rl = Rb # UNUSED
verts = []
edgefaces = []
diff --git a/add_mesh_extra_objects/add_mesh_gemstones.py b/add_mesh_extra_objects/add_mesh_gemstones.py
index d4158b68..a9491bd7 100644
--- a/add_mesh_extra_objects/add_mesh_gemstones.py
+++ b/add_mesh_extra_objects/add_mesh_gemstones.py
@@ -41,8 +41,6 @@ from bpy.props import *
# new mesh (as used in from_pydata).
# name ... Name of the new mesh (& object).
def create_mesh_object(context, verts, edges, faces, name):
- scene = context.scene
- obj_act = scene.objects.active
# Create new mesh
mesh = bpy.data.meshes.new(name)
@@ -213,7 +211,7 @@ def add_diamond(segments, girdle_radius, table_radius,
for index in range(segments):
quat = Quaternion(z_axis, (index / segments) * PI_2)
- angle = PI_2 * index / segments
+ # angle = PI_2 * index / segments # UNUSED
# Row for flat side
verts_flat.append(len(verts))
diff --git a/add_mesh_extra_objects/add_mesh_twisted_torus.py b/add_mesh_extra_objects/add_mesh_twisted_torus.py
index 6eb8cc24..bfed4670 100644
--- a/add_mesh_extra_objects/add_mesh_twisted_torus.py
+++ b/add_mesh_extra_objects/add_mesh_twisted_torus.py
@@ -46,7 +46,6 @@ Usage:
import bpy
from bpy.props import *
-import mathutils
from mathutils import *
from math import cos, sin, pi
@@ -56,8 +55,6 @@ from math import cos, sin, pi
# new mesh (as used in from_pydata).
# name ... Name of the new mesh (& object).
def create_mesh_object(context, verts, edges, faces, name):
- scene = context.scene
- obj_act = scene.objects.active
# Create new mesh
mesh = bpy.data.meshes.new(name)