diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-06-10 01:22:27 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-06-10 01:22:27 +0400 |
commit | 2d03a897dd8b008475d8358f6cef3a0b08bd7090 (patch) | |
tree | 10859aef6a6e6d1ece49ee99d713cf95b14f2797 /io_export_pc2.py | |
parent | 1e81c6e78b47fee305ecc3316a2d5f083eca3cc3 (diff) |
Fix [#31769] pc2 point cache exporter creates empty file if an export frame range is specified.
Code generating frame range was buggy...
Diffstat (limited to 'io_export_pc2.py')
-rw-r--r-- | io_export_pc2.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/io_export_pc2.py b/io_export_pc2.py index b09d5a73..dadfb317 100644 --- a/io_export_pc2.py +++ b/io_export_pc2.py @@ -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): |