Skip to content

Commit 641c79d

Browse files
committed
minor change
1 parent 3e3a921 commit 641c79d

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

template/partio.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# This is the template specifically show how to load mzd files.
2+
# For more information about mzd, you can find at https://github.com/wdas/partio and https://github.com/digitalillusions/BlenderPartioTools/tree/master/extern/partio
3+
# and python bind at https://github.com/digitalillusions/BlenderPartioTools/tree/master/partio_extension_pybind
4+
# For general information about how to write template, please look at the template.py
5+
16
import meshio
27
import fileseq
38
import bpy
@@ -40,6 +45,7 @@ def preprocess(fileseq: fileseq.FileSequence, frame_number: int) -> meshio.Mesh:
4045

4146
return meshio.Mesh(
4247
points,
43-
# the cells is not important here
44-
cells=[('vertex', [[x] for x in range(n_particles)])],
48+
# the cells is not important here,
49+
# Inside simloader, cells with vertex type will be ignored
50+
cells=[('vertex',[])],
4551
point_data=point_data)

template/template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
#
1515
# Note: process has higher priority, which means, when process exists, preprocess will be ignored.
16-
# When preprocess and process bot not exist, addon will call the default version.
16+
# When preprocess and process both not exist, addon will call the default version.
1717
#
1818
# In general, we suggest to use preprocess alone, since meshio has a relatively clear and simple data structure,
1919
# while directly manipulate bpy.types.mesh could be complicated
@@ -29,7 +29,7 @@
2929

3030

3131
def process(fileseq: fileseq.FileSequence, frame_number: int, mesh: bpy.types.Mesh):
32-
# currently, you can not call preprocess inside process fucntion
32+
# However, you can not call preprocess inside process fucntion
3333
frame_number = frame_number % len(fileseq)
3434
meshio_mesh = meshio.read(fileseq[frame_number])
3535
update_mesh(meshio_mesh, mesh)

0 commit comments

Comments
 (0)