Cleanup: remove dead code
This commit is contained in:
@@ -970,7 +970,6 @@ class CLIP_OT_setup_tracking_scene(Operator):
|
||||
|
||||
def execute(self, context):
|
||||
scene = context.scene
|
||||
# current_active_layer = scene.active_layer
|
||||
|
||||
self._setupScene(context)
|
||||
self._setupWorld(context)
|
||||
|
||||
@@ -782,7 +782,6 @@ class GreasePencilToolsPanel:
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
# gpd_owner = context.gpencil_data_owner
|
||||
gpd = context.gpencil_data
|
||||
|
||||
layout.prop(gpd, "use_stroke_edit_mode", text="Enable Editing", icon='EDIT', toggle=True)
|
||||
|
||||
@@ -705,7 +705,6 @@ class PARTICLE_PT_physics_fluid_advanced(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
fluid = part.fluid
|
||||
|
||||
@@ -755,7 +754,6 @@ class PARTICLE_PT_physics_fluid_springs(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
fluid = part.fluid
|
||||
|
||||
@@ -780,7 +778,6 @@ class PARTICLE_PT_physics_fluid_springs_viscoelastic(ParticleButtonsPanel, Panel
|
||||
return False
|
||||
|
||||
def draw_header(self, context):
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
fluid = part.fluid
|
||||
|
||||
@@ -790,7 +787,6 @@ class PARTICLE_PT_physics_fluid_springs_viscoelastic(ParticleButtonsPanel, Panel
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
fluid = part.fluid
|
||||
|
||||
@@ -824,7 +820,6 @@ class PARTICLE_PT_physics_fluid_springs_advanced(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
fluid = part.fluid
|
||||
|
||||
@@ -848,7 +843,6 @@ class PARTICLE_PT_physics_boids_movement(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
boids = part.boids
|
||||
|
||||
@@ -902,7 +896,6 @@ class PARTICLE_PT_physics_boids_battle(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
boids = part.boids
|
||||
|
||||
@@ -930,7 +923,6 @@ class PARTICLE_PT_physics_boids_misc(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
boids = part.boids
|
||||
|
||||
@@ -1248,7 +1240,6 @@ class PARTICLE_PT_render_extra(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1274,7 +1265,6 @@ class PARTICLE_PT_render_line(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1301,7 +1291,6 @@ class PARTICLE_PT_render_path(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1366,7 +1355,6 @@ class PARTICLE_PT_render_object(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1393,7 +1381,6 @@ class PARTICLE_PT_render_collection(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1432,7 +1419,6 @@ class PARTICLE_PT_render_collection_use_count(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1498,7 +1484,6 @@ class PARTICLE_PT_render_billboards_tilt(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1567,7 +1552,6 @@ class PARTICLE_PT_render_trails(ParticleButtonsPanel, Panel):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
col = layout.column()
|
||||
@@ -1712,7 +1696,6 @@ class PARTICLE_PT_children_parting(ParticleButtonsPanel, Panel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
layout.use_property_split = True
|
||||
@@ -1737,7 +1720,6 @@ class PARTICLE_PT_children_clumping(ParticleButtonsPanel, Panel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
layout.use_property_split = True
|
||||
@@ -1779,7 +1761,6 @@ class PARTICLE_PT_children_roughness(ParticleButtonsPanel, Panel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
layout.use_property_split = True
|
||||
@@ -1821,7 +1802,6 @@ class PARTICLE_PT_children_kink(ParticleButtonsPanel, Panel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
# psys = context.particle_system
|
||||
part = particle_get_settings(context)
|
||||
|
||||
layout.use_property_split = True
|
||||
|
||||
@@ -263,9 +263,6 @@ class CLIP_PT_tools_marker(CLIP_PT_tracking_panel, Panel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
# sc = context.space_data
|
||||
# clip = sc.clip
|
||||
|
||||
col = layout.column(align=True)
|
||||
row = col.row(align=True)
|
||||
row.operator("clip.add_marker_at_click", text="Add")
|
||||
|
||||
@@ -50,9 +50,6 @@ class VIEW3D_HT_header(Header):
|
||||
|
||||
# Contains buttons like Mode, Pivot, Layer, Mesh Select Mode...
|
||||
if obj:
|
||||
# Set above:
|
||||
# object_mode = obj.mode
|
||||
|
||||
# Particle edit
|
||||
if object_mode == 'PARTICLE_EDIT':
|
||||
row = layout.row()
|
||||
|
||||
@@ -553,7 +553,6 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel):
|
||||
layout = self.layout
|
||||
|
||||
settings = context.tool_settings.image_paint
|
||||
# brush = settings.brush
|
||||
|
||||
ob = context.active_object
|
||||
col = layout.column()
|
||||
@@ -969,7 +968,6 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
# scene = context.scene
|
||||
|
||||
toolsettings = context.tool_settings
|
||||
sculpt = toolsettings.sculpt
|
||||
|
||||
Reference in New Issue
Block a user