Extra objects: Fix TypeError when torus knot addedv3.3.10
commit9b1316774ba455690de58668c52f56cb7b57e397
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 21:42:45 +0000 (9 23:42 +0200)
tree966945f8dfe0486af94fac007611ab3f838bf42b
parent13f245011a286bac6cbcb153d943630504a174af
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