Skip to content
Snippets Groups Projects
Commit 2d03a897 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Fix [#31769] pc2 point cache exporter creates empty file if an export frame range is specified.

Code generating frame range was buggy...
parent 1e81c6e7
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,8 @@ import time
from bpy_extras.io_utils import ExportHelper
def getSampling(start, end, sampling):
samples = [start - sampling
+ x * sampling
for x in range(start, int((end-start) * 1.0 / sampling) + 1)]
samples = [start + x * sampling
for x in range(int((end - start) / sampling) + 1)]
return samples
def do_export(context, props, filepath):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment