Cleanup: unused vars, imports, pep8
This commit is contained in:
@@ -82,7 +82,6 @@ def init():
|
||||
import bpy
|
||||
import _cycles
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
# Workaround possibly buggy legacy drivers which crashes on the OpenCL
|
||||
# device enumeration.
|
||||
@@ -103,10 +102,12 @@ def init():
|
||||
_cycles.init(path, user_path, bpy.app.background)
|
||||
_parse_command_line()
|
||||
|
||||
|
||||
def exit():
|
||||
import _cycles
|
||||
_cycles.exit()
|
||||
|
||||
|
||||
def create(engine, data, scene, region=None, v3d=None, rv3d=None, preview_osl=False):
|
||||
import bpy
|
||||
import _cycles
|
||||
|
@@ -1013,7 +1013,6 @@ class CyclesObjectSettings(bpy.types.PropertyGroup):
|
||||
default=1.0,
|
||||
)
|
||||
|
||||
|
||||
@classmethod
|
||||
def unregister(cls):
|
||||
del bpy.types.Object.cycles
|
||||
|
@@ -887,7 +887,7 @@ class CyclesLamp_PT_lamp(CyclesButtonsPanel, Panel):
|
||||
|
||||
lamp = context.lamp
|
||||
clamp = lamp.cycles
|
||||
cscene = context.scene.cycles
|
||||
# cscene = context.scene.cycles
|
||||
|
||||
layout.prop(lamp, "type", expand=True)
|
||||
|
||||
@@ -1107,7 +1107,7 @@ class CyclesWorld_PT_settings(CyclesButtonsPanel, Panel):
|
||||
|
||||
world = context.world
|
||||
cworld = world.cycles
|
||||
cscene = context.scene.cycles
|
||||
# cscene = context.scene.cycles
|
||||
|
||||
split = layout.split()
|
||||
|
||||
|
@@ -104,7 +104,6 @@ def vector_curve_node_remap(node):
|
||||
"""
|
||||
Remap values of vector curve node from normalized to absolute values
|
||||
"""
|
||||
from mathutils import Vector
|
||||
if node.bl_idname == 'ShaderNodeVectorCurve':
|
||||
node.mapping.use_clip = False
|
||||
for curve in node.mapping.curves:
|
||||
|
Reference in New Issue
Block a user