passivestar / quickmenu

Blender addon that simplifies access to useful operators and adds missing functionality
GNU General Public License v3.0
1.13k stars 42 forks source link

D-3-4 scale down (mouse to the left) throws error #2

Closed iperson closed 2 years ago

iperson commented 2 years ago

Blender 3.0.1

Error: Python: Traceback (most recent call last):
  File "D:\Blender Assets\addons\quickmenu-main\__init__.py", line 645, in modal
    return modal_run(self, context, event, True)
  File "D:\Blender Assets\addons\quickmenu-main\__init__.py", line 184, in modal_run
    if hasattr(operator, 'on_modal_run'): operator.on_modal_run(context, event)
  File "D:\Blender Assets\addons\quickmenu-main\__init__.py", line 624, in on_modal_run
    self.execute(context)
  File "D:\Blender Assets\addons\quickmenu-main\__init__.py", line 661, in execute
    self.add_geometry()
  File "D:\Blender Assets\addons\quickmenu-main\__init__.py", line 656, in add_geometry
    self.vertices = calculate_number_of_vertices_by_radius(self.radius)
  File "D:\Blender Assets\addons\quickmenu-main\__init__.py", line 104, in calculate_number_of_vertices_by_radius
    return max(6, grid_snap(2, math.log(1 + 0.03 + 0.4 * radius) * RADIUS_TO_VERTICES))
ValueError: math domain error