Skip to content

Commit 24ee41d

Browse files
authored
Merge pull request #3 from PavelBlend/blender-2.81-bugfix
support blender 2.81
2 parents f26d7ff + f4848fe commit 24ee41d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

addon/BlenderPartioTools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PartioReader:
2727
def __init__( self, param ):
2828
self.param = param
2929

30-
def __call__(self, scene):
30+
def __call__(self, scene, depsgraph=None):
3131
partioFile = self.param[0]
3232
emitterObject = self.param[1]
3333

@@ -173,8 +173,10 @@ def initParticleSystem(self):
173173

174174
# add object for rendering particles
175175
bpy.ops.mesh.primitive_uv_sphere_add(radius=1, enter_editmode=False, location=(0, 0, 0))
176+
bpy.ops.object.shade_smooth()
176177
sphereObj = bpy.context.active_object
177-
sphereObj.hide_viewport = True
178+
sphereObj.hide_set(True)
179+
sphereObj.hide_viewport = False
178180
sphereObj.hide_render = True
179181
sphereObj.hide_select = True
180182

0 commit comments

Comments
 (0)