Cleanup: unused variables
This commit is contained in:
@@ -624,7 +624,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
|
||||
fg.use_sky = True
|
||||
|
||||
if not view_layers.get("Background"):
|
||||
bg = view_layers.new("Background")
|
||||
_bg = view_layers.new("Background")
|
||||
|
||||
@staticmethod
|
||||
def createCollection(context, collection_name):
|
||||
@@ -969,8 +969,6 @@ class CLIP_OT_setup_tracking_scene(Operator):
|
||||
setup_shadow_catcher_objects(bg_coll)
|
||||
|
||||
def execute(self, context):
|
||||
scene = context.scene
|
||||
|
||||
self._setupScene(context)
|
||||
self._setupWorld(context)
|
||||
self._setupCamera(context)
|
||||
|
||||
@@ -254,7 +254,7 @@ class SubdivisionSet(Operator):
|
||||
if not relative:
|
||||
if level > mod.total_levels:
|
||||
sub = level - mod.total_levels
|
||||
for i in range(sub):
|
||||
for _ in range(sub):
|
||||
bpy.ops.object.multires_subdivide(modifier="Multires")
|
||||
|
||||
if obj.mode == 'SCULPT':
|
||||
@@ -287,7 +287,7 @@ class SubdivisionSet(Operator):
|
||||
if obj.mode == 'SCULPT':
|
||||
mod = obj.modifiers.new("Multires", 'MULTIRES')
|
||||
if level > 0:
|
||||
for i in range(0, level):
|
||||
for _ in range(level):
|
||||
bpy.ops.object.multires_subdivide(modifier="Multires")
|
||||
else:
|
||||
mod = obj.modifiers.new("Subsurf", 'SUBSURF')
|
||||
|
||||
@@ -1521,7 +1521,6 @@ class WM_OT_copy_prev_settings(Operator):
|
||||
return os.path.isfile(old_userpref) and not os.path.isfile(new_userpref)
|
||||
|
||||
def execute(self, context):
|
||||
import os
|
||||
import shutil
|
||||
|
||||
shutil.copytree(self._old_path(), self._new_path(), symlinks=True)
|
||||
@@ -2204,7 +2203,7 @@ class WM_OT_addon_remove(Operator):
|
||||
# lame confirmation check
|
||||
def draw(self, context):
|
||||
self.layout.label(text="Remove Add-on: %r?" % self.module)
|
||||
path, isdir = WM_OT_addon_remove.path_from_addon(self.module)
|
||||
path, _isdir = WM_OT_addon_remove.path_from_addon(self.module)
|
||||
self.layout.label(text="Path: %r" % path)
|
||||
|
||||
def invoke(self, context, event):
|
||||
|
||||
Reference in New Issue
Block a user