Skip to content

Commit

Permalink
Format the code
Browse files Browse the repository at this point in the history
  • Loading branch information
UuuNyaa committed Dec 31, 2021
1 parent a6bf26b commit f86e2c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mmd_tools/panels/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from mmd_tools.core import model
from mmd_tools.core.sdef import FnSDEF


@register_wrap
class MMDToolsSceneSetupPanel(bpy.types.Panel):
bl_idname = 'OBJECT_PT_mmd_tools_scene_setup'
Expand Down Expand Up @@ -167,7 +168,7 @@ def draw_assembly(self, context, mmd_root_object):
def __get_toggle_items(self, mmd_root_object: bpy.types.Object):
if self.__toggle_items_ttl > time.time():
return self.__toggle_items_cache

self.__toggle_items_ttl = time.time() + 10
self.__toggle_items_cache = []
armature_object = model.FnModel.find_armature(mmd_root_object)
Expand Down Expand Up @@ -197,9 +198,8 @@ def __get_toggle_items(self, mmd_root_object: bpy.types.Object):
for _, ik in sorted(group, key=lambda x: x[0]):
ic = 'ERROR' if ik_map[ik][-1] else 'NONE'
self.__toggle_items_cache.append((ik, ic))

return self.__toggle_items_cache

return self.__toggle_items_cache

def draw_ik_toggle(self, _context, mmd_root_object):
col = self.layout.column(align=True)
Expand Down

0 comments on commit f86e2c8

Please sign in to comment.