Skip to content

Commit

Permalink
Cosmetics.
Browse files Browse the repository at this point in the history
  • Loading branch information
muhuk committed Nov 23, 2020
1 parent 1b0f51c commit 38dac2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion meshstats/overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def _draw_overlay_poles(
{
"pos": list(chain(*zip(repeat(pole_.center), midpoints))),
"color": list(
chain(*repeat([use_color, zeroed_color], len(pole_.spokes)))
chain(*repeat(
[use_color, zeroed_color],
len(pole_.spokes)
))
)
}
)
Expand Down
8 changes: 5 additions & 3 deletions meshstats/props.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

if "bpy" in locals():
import importlib
importlib.reload(constants)
importlib.reload(constants) # noqa: F821
else:
import bpy
from meshstats import constants
Expand Down Expand Up @@ -128,12 +128,14 @@ class MeshstatsResetSettings(bpy.types.Operator):
bl_label = "Reset Meshstats settings"

def execute(self, context):
addon_prefs = context.preferences.addons[constants.ADDON_NAME].preferences
addon_prefs = \
context.preferences.addons[constants.ADDON_NAME].preferences
addon_prefs.overlay_tris_color = constants.DEFAULT_TRIS_OUTLINE_COLOR
addon_prefs.overlay_ngons_color = constants.DEFAULT_NGONS_OUTLINE_COLOR
addon_prefs.overlay_e_poles_color = constants.DEFAULT_E_POLES_COLOR
addon_prefs.overlay_n_poles_color = constants.DEFAULT_N_POLES_COLOR
addon_prefs.overlay_star_poles_color = constants.DEFAULT_STAR_POLES_COLOR
addon_prefs.overlay_star_poles_color = \
constants.DEFAULT_STAR_POLES_COLOR
return {'FINISHED'}


Expand Down

0 comments on commit 38dac2c

Please sign in to comment.