[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2320] trunk/py/scripts/addons: cleanup unused vars
Campbell Barton
ideasman42 at gmail.com
Sat Sep 10 06:12:53 CEST 2011
Revision: 2320
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2320
Author: campbellbarton
Date: 2011-09-10 04:12:48 +0000 (Sat, 10 Sep 2011)
Log Message:
-----------
cleanup unused vars
Modified Paths:
--------------
trunk/py/scripts/addons/add_curve_ivygen.py
trunk/py/scripts/addons/io_scene_3ds/export_3ds.py
trunk/py/scripts/addons/io_scene_x3d/import_x3d.py
trunk/py/scripts/addons/mocap/__init__.py
trunk/py/scripts/addons/mocap/retarget.py
Modified: trunk/py/scripts/addons/add_curve_ivygen.py
===================================================================
--- trunk/py/scripts/addons/add_curve_ivygen.py 2011-09-08 13:49:27 UTC (rev 2319)
+++ trunk/py/scripts/addons/add_curve_ivygen.py 2011-09-10 04:12:48 UTC (rev 2320)
@@ -189,7 +189,7 @@
ob = bpy.data.objects.new('IvyLeaf', me)
bpy.context.scene.objects.link(ob)
- tex = me.uv_textures.new("Leaves")
+ me.uv_textures.new("Leaves")
# Set the uv texture coords
# TODO, this is non-functional, default uvs are ok?
@@ -565,7 +565,6 @@
# Generate first root and node
IVY.seed(seedPoint)
- checkAlive = True
checkTime = False
maxLength = self.maxIvyLength # * radius
Modified: trunk/py/scripts/addons/io_scene_3ds/export_3ds.py
===================================================================
--- trunk/py/scripts/addons/io_scene_3ds/export_3ds.py 2011-09-08 13:49:27 UTC (rev 2319)
+++ trunk/py/scripts/addons/io_scene_3ds/export_3ds.py 2011-09-10 04:12:48 UTC (rev 2320)
@@ -447,7 +447,6 @@
mat_sub = _3ds_chunk(id)
def add_image(img):
- import os
import bpy
filename = bpy.path.basename(image.filepath)
mat_sub_file = _3ds_chunk(MATMAPFILE)
Modified: trunk/py/scripts/addons/io_scene_x3d/import_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/import_x3d.py 2011-09-08 13:49:27 UTC (rev 2319)
+++ trunk/py/scripts/addons/io_scene_x3d/import_x3d.py 2011-09-10 04:12:48 UTC (rev 2320)
@@ -1223,20 +1223,14 @@
def gzipOpen(path):
+ import gzip
+
+ data = None
try:
- import gzip
+ data = gzip.open(path, 'r').read()
except:
- gzip = None
+ pass
- data = None
- if gzip:
- try:
- data = gzip.open(path, 'r').read()
- except:
- pass
- else:
- print('\tNote, gzip module could not be imported, compressed files will fail to load')
-
if data is None:
try:
filehandle = open(path, 'rU')
Modified: trunk/py/scripts/addons/mocap/__init__.py
===================================================================
--- trunk/py/scripts/addons/mocap/__init__.py 2011-09-08 13:49:27 UTC (rev 2319)
+++ trunk/py/scripts/addons/mocap/__init__.py 2011-09-10 04:12:48 UTC (rev 2320)
@@ -182,7 +182,7 @@
chainLen += 1
if hasIKConstraint(parent_bone):
break
- deformer_children = [child for child in parent_bone.children if child.bone.use_deform]
+ #~ deformer_children = [child for child in parent_bone.children if child.bone.use_deform]
#~ if len(deformer_children) > 1:
#~ break
ik.chain_count = chainLen
@@ -577,10 +577,6 @@
@classmethod
def poll(cls, context):
- return context.active_object
-
- @classmethod
- def poll(cls, context):
return context.active_object.animation_data
@@ -879,7 +875,7 @@
#Advanced retargeting boolean property
bpy.types.Armature.advancedRetarget = BoolProperty(default=False, update=advancedRetargetToggle)
#frame step - frequency of frames to retarget. Skipping is useful for previewing, faster work etc.
- bpy.types.Armature.frameStep = smooth_out = IntProperty(name="Frame Skip",
+ bpy.types.Armature.frameStep = IntProperty(name="Frame Skip",
default=1,
description="Amount of frames to skip - for previewing retargets quickly. 1 is fully sampled",
min=1)
Modified: trunk/py/scripts/addons/mocap/retarget.py
===================================================================
--- trunk/py/scripts/addons/mocap/retarget.py 2011-09-08 13:49:27 UTC (rev 2319)
+++ trunk/py/scripts/addons/mocap/retarget.py 2011-09-10 04:12:48 UTC (rev 2320)
@@ -20,7 +20,7 @@
import bpy
from mathutils import Vector, Matrix
-from math import radians, acos, pi
+from math import radians
from bl_operators import nla
More information about the Bf-extensions-cvs
mailing list