Skip to content
Snippets Groups Projects
Commit d1228ea8 authored by Campbell Barton's avatar Campbell Barton
Browse files

cleanup unused vars

parent a90f3ac6
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ def createIvyGeometry(IVY, growLeaves):
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 @@ class IvyGen(bpy.types.Operator):
# Generate first root and node
IVY.seed(seedPoint)
checkAlive = True
checkTime = False
maxLength = self.maxIvyLength # * radius
......
......@@ -447,7 +447,6 @@ def make_material_texture_chunk(id, images):
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)
......
......@@ -1223,19 +1223,13 @@ class vrmlNode(object):
def gzipOpen(path):
try:
import gzip
except:
gzip = None
import gzip
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')
try:
data = gzip.open(path, 'r').read()
except:
pass
if data is None:
try:
......
......@@ -182,7 +182,7 @@ def toggleIKBone(self, context):
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
......@@ -575,10 +575,6 @@ class OBJECT_OT_DenoiseButton(bpy.types.Operator):
mocap_tools.denoise_median()
return {"FINISHED"}
@classmethod
def poll(cls, context):
return context.active_object
@classmethod
def poll(cls, context):
return context.active_object.animation_data
......@@ -879,7 +875,7 @@ def register():
#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)
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment