MCPcopy Create free account
hub / github.com/JacquesLucke/code_autocomplete / get_line_amount

Function get_line_amount

modal_handler.py:522–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520 self.top_index = clamp(self.top_index, self.selected_index - get_line_amount() + 1, self.selected_index)
521
522def get_line_amount():
523 preferences = get_addon_preferences()
524 if preferences is None: return 8
525 else: return preferences.line_amount
526def get_addon_preferences():
527 addon = bpy.context.user_preferences.addons.get(get_addon_name())
528 if addon is None: return None

Callers 3

bottom_indexMethod · 0.85
draw_operator_boxMethod · 0.85
correct_indexMethod · 0.85

Calls 1

get_addon_preferencesFunction · 0.85

Tested by

no test coverage detected