Cleanup: unused args/vars/imports in bl_operators

This commit is contained in:
2019-05-09 09:15:01 +10:00
parent bc39fa947a
commit fc37238b17
20 changed files with 67 additions and 72 deletions

View File

@@ -906,7 +906,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
return None
@staticmethod
def _createLight(scene):
def _createLight():
light = bpy.data.lights.new(name="Light", type='POINT')
lightob = bpy.data.objects.new(name="Light", object_data=light)
@@ -951,7 +951,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
# Create sample light if there is no lights in the scene.
if not has_light:
light = self._createLight(scene)
light = self._createLight()
fg_coll.objects.link(light)
bg_coll.objects.link(light)