forked from bartvdbraak/blender
Cleanup: unused imports
This commit is contained in:
parent
c567dd5ad9
commit
0bd45a2d51
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Panel
|
||||
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Panel
|
||||
|
||||
|
||||
|
@ -20,9 +20,6 @@
|
||||
import bpy
|
||||
from bpy.types import Menu, Panel, UIList
|
||||
from rna_prop_ui import PropertyPanel
|
||||
from .properties_grease_pencil_common import (
|
||||
GPENCIL_UL_layer,
|
||||
)
|
||||
|
||||
###############################
|
||||
# Base-Classes (for shared stuff - e.g. poll, attributes, etc.)
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Menu, Panel
|
||||
from bpy.types import Panel
|
||||
from rna_prop_ui import PropertyPanel
|
||||
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Panel
|
||||
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Panel
|
||||
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
# panels get subclassed (not registered directly)
|
||||
# menus are referenced `as is`
|
||||
|
||||
import bpy
|
||||
from bpy.types import Menu, UIList
|
||||
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
import bpy
|
||||
from bpy.types import Menu, Panel, UIList
|
||||
from rna_prop_ui import PropertyPanel
|
||||
from bpy.app.translations import pgettext_iface as iface_
|
||||
from bpy_extras.node_utils import find_node_input
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import (
|
||||
Panel,
|
||||
)
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import (
|
||||
Panel,
|
||||
UIList,
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import (
|
||||
Panel,
|
||||
)
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import (
|
||||
Panel,
|
||||
)
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import (
|
||||
Panel,
|
||||
)
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import (
|
||||
Panel,
|
||||
)
|
||||
|
@ -18,8 +18,7 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Menu, Panel, UIList
|
||||
from bpy.types import Panel
|
||||
from .space_view3d import (
|
||||
VIEW3D_PT_shading_lighting,
|
||||
VIEW3D_PT_shading_color,
|
||||
|
@ -17,8 +17,7 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Panel, UIList
|
||||
from bpy.types import Panel
|
||||
|
||||
|
||||
class ViewLayerButtonsPanel:
|
||||
|
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Header, Panel, Menu, UIList
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import Header, Menu, Panel
|
||||
from .space_dopesheet import (
|
||||
DopesheetFilterPopoverBase,
|
||||
|
@ -18,8 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
import math
|
||||
from bpy.types import (
|
||||
Header,
|
||||
Menu,
|
||||
|
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Header, Menu
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.types import Header, Menu, Panel
|
||||
from .space_dopesheet import (
|
||||
DopesheetFilterPopoverBase,
|
||||
|
@ -23,7 +23,6 @@ from bpy.types import Header, Menu, Panel
|
||||
from bpy.app.translations import pgettext_iface as iface_
|
||||
from bl_ui.utils import PresetPanel
|
||||
from .properties_grease_pencil_common import (
|
||||
AnnotationDrawingToolsPanel,
|
||||
AnnotationDataPanel,
|
||||
GreasePencilToolsPanel,
|
||||
)
|
||||
|
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Header, Panel
|
||||
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Header
|
||||
|
||||
|
||||
|
@ -116,7 +116,7 @@ def from_dict(kw_args):
|
||||
kw.update(kw_args)
|
||||
|
||||
keymap = kw["keymap"]
|
||||
if kw["keymap"] is None:
|
||||
if keymap is None:
|
||||
pass
|
||||
elif type(keymap) is tuple:
|
||||
keymap = [_keymap_fn_from_seq(keymap)]
|
||||
|
@ -19,9 +19,6 @@
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import Header, Menu, Panel
|
||||
from .properties_grease_pencil_common import (
|
||||
GPENCIL_UL_layer,
|
||||
)
|
||||
|
||||
|
||||
class TOPBAR_HT_upper_bar(Header):
|
||||
|
@ -601,7 +601,6 @@ class USERPREF_PT_viewport_quality(PreferencePanel, Panel):
|
||||
return (prefs.active_section == 'VIEWPORT')
|
||||
|
||||
def draw_props(self, context, layout):
|
||||
import sys
|
||||
prefs = context.preferences
|
||||
system = prefs.system
|
||||
|
||||
|
@ -5359,7 +5359,6 @@ class VIEW3D_PT_gpencil_guide(Panel):
|
||||
bl_label = "Guides"
|
||||
|
||||
def draw(self, context):
|
||||
from math import pi
|
||||
settings = context.tool_settings.gpencil_sculpt.guide
|
||||
|
||||
layout = self.layout
|
||||
|
Loading…
Reference in New Issue
Block a user