Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/btrace
diff options
context:
space:
mode:
authorPratik Borhade <PratikPB2123>2022-07-05 12:13:21 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-07-05 12:18:38 +0300
commitb13fa85ef34979ccd57ad8bb3e6212feb92bd9ff (patch)
tree210b38c9aec68c131e0356121d44f0db2a141b73 /btrace
parentaa5b859302f233bd99469188ad57e61c62977678 (diff)
Fix T98902: Btracer Particle Trace is broken
Problem has been introduced after python 3.10 upgrade This patch explicitly casts input parameters to int Maniphest Tasks: T98902 Differential Revision: https://developer.blender.org/D15225
Diffstat (limited to 'btrace')
-rw-r--r--btrace/__init__.py2
-rw-r--r--btrace/bTrace.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/btrace/__init__.py b/btrace/__init__.py
index fd4bf57c..527ceb3f 100644
--- a/btrace/__init__.py
+++ b/btrace/__init__.py
@@ -4,7 +4,7 @@
bl_info = {
"name": "BTracer",
"author": "liero, crazycourier, Atom, Meta-Androcto, MacKracken",
- "version": (1, 2, 3),
+ "version": (1, 2, 4),
"blender": (2, 80, 0),
"location": "View3D > Sidebar > Create Tab",
"description": "Tools for converting/animating objects/particles into curves",
diff --git a/btrace/bTrace.py b/btrace/bTrace.py
index a17c3dd7..2ec92d72 100644
--- a/btrace/bTrace.py
+++ b/btrace/bTrace.py
@@ -303,9 +303,9 @@ class OBJECT_OT_particletrace(Operator):
spline = tracer[0].splines.new('BEZIER')
# add point to spline based on step size
- spline.bezier_points.add((x.lifetime - 1) // particle_step)
+ spline.bezier_points.add(int((x.lifetime - 1) // particle_step))
for t in list(range(int(x.lifetime))):
- bpy.context.scene.frame_set(t + x.birth_time)
+ bpy.context.scene.frame_set(int(t + x.birth_time))
if not t % particle_step:
p = spline.bezier_points[t // particle_step]