Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
2d03a897
Commit
2d03a897
authored
12 years ago
by
Bastien Montagne
Browse files
Options
Downloads
Patches
Plain Diff
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
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_export_pc2.py
+2
-3
2 additions, 3 deletions
io_export_pc2.py
with
2 additions
and
3 deletions
io_export_pc2.py
+
2
−
3
View file @
2d03a897
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment