Cleanup: remove unused variables, redundant assignments
This commit is contained in:
@@ -1210,7 +1210,6 @@ def pycontext2sphinx(basepath):
|
||||
for ctx_str, ctx_members in sorted(context_member_map.items()):
|
||||
subsection = "%s Context" % ctx_str.split("_")[0].title()
|
||||
fw("\n%s\n%s\n\n" % (subsection, (len(subsection) * '-')))
|
||||
i = 0
|
||||
for member in ctx_members:
|
||||
unique_all_len = len(unique)
|
||||
unique.add(member)
|
||||
@@ -1231,7 +1230,6 @@ def pycontext2sphinx(basepath):
|
||||
"Error: context key %r not found in context_type_map; update %s" %
|
||||
(member, __file__)) from None
|
||||
fw(" :type: %s :class:`bpy.types.%s`\n\n" % ("sequence of " if is_seq else "", member_type))
|
||||
i += 1
|
||||
|
||||
# generate typemap...
|
||||
# for member in sorted(unique_context_strings):
|
||||
|
||||
@@ -49,7 +49,7 @@ class GreasePencilSculptAdvancedPanel:
|
||||
layout.use_property_decorate = False
|
||||
|
||||
tool_settings = context.scene.tool_settings
|
||||
brush = context.tool_settings.gpencil_sculpt_paint.brush
|
||||
brush = tool_settings.gpencil_sculpt_paint.brush
|
||||
tool = brush.gpencil_sculpt_tool
|
||||
gp_settings = brush.gpencil_settings
|
||||
|
||||
|
||||
@@ -797,7 +797,6 @@ def brush_settings(layout, context, brush, popover=False):
|
||||
col = layout.column()
|
||||
col.active = not brush.curves_sculpt_settings.interpolate_point_count
|
||||
col.prop(brush.curves_sculpt_settings, "points_per_curve")
|
||||
use_frontface = True
|
||||
elif brush.curves_sculpt_tool == 'GROW_SHRINK':
|
||||
layout.prop(brush.curves_sculpt_settings, "scale_uniform")
|
||||
layout.prop(brush.curves_sculpt_settings, "minimum_length")
|
||||
|
||||
@@ -5689,7 +5689,7 @@ class VIEW3D_PT_object_type_visibility(Panel):
|
||||
# Allows derived classes to pass view data other than context.space_data.
|
||||
# This is used by the official VR add-on, which passes XrSessionSettings
|
||||
# since VR has a 3D view that only exists for the duration of the VR session.
|
||||
def draw_ex(self, context, view, show_select):
|
||||
def draw_ex(self, _context, view, show_select):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False
|
||||
|
||||
@@ -276,7 +276,7 @@ class VIEW3D_PT_tools_posemode_options(View3DPanel, Panel):
|
||||
|
||||
|
||||
class TEXTURE_UL_texpaintslots(UIList):
|
||||
def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index):
|
||||
def draw_item(self, _context, layout, _data, item, _icon, _active_data, _active_propname, _index):
|
||||
# mat = data
|
||||
|
||||
if self.layout_type in {'DEFAULT', 'COMPACT'}:
|
||||
|
||||
@@ -881,10 +881,8 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
|
||||
/* set normal */
|
||||
if (vert_connect) {
|
||||
if (do_normal_create) {
|
||||
/* set the normal now its transformed */
|
||||
float nor_tx[3];
|
||||
mul_v3_m3v3(nor_tx, mat3, vert_connect[j].no);
|
||||
copy_v3_v3(vert_normals_new[mv_new - mvert_new], nor_tx);
|
||||
/* Set the normal now its transformed. */
|
||||
mul_v3_m3v3(vert_normals_new[mv_new - mvert_new], mat3, vert_connect[j].no);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user