Extra objects: Fix TypeError when torus knot added
commit973e85bda9243b6e8c3fd190ea3c30620e78cdb0
authorPatrick-White-4 <patrick-white-4@noreply.localhost>
Tue, 1 Aug 2023 11:41:10 +0000 (1 13:41 +0200)
committerPhilipp Oeser <philipp@blender.org>
Wed, 9 Aug 2023 19:20:29 +0000 (9 21:20 +0200)
treec5dc77a6315343fd79c3110f7aaf33f7220e5a65
parent2a562f9a8fd6026124db6d14000bc24d4a3ebaa9
Extra objects: Fix TypeError when torus knot added

TypeError is thrown when `torus knot object +` added with `7*6` preset.
`torus_res` is an IntProperty, and after python 3.10, implicit conversion
from float to int is not happening. Cast division value explicity to int to
fix the problem.

Pull Request: https://projects.blender.org/blender/blender-addons/pulls/104810
add_curve_extra_objects/add_curve_torus_knots.py