Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ALICE-open-data
ALICE Blender animation
Commits
ad99e0d9
Commit
ad99e0d9
authored
Nov 25, 2019
by
Breno Rilho Lemos
💬
Browse files
Add back smooth shading to spheres
parent
8f7d55ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
animate/scene_functions.py
View file @
ad99e0d9
...
...
@@ -90,6 +90,7 @@ def createSceneParticles(particles, createTracks = False):
this_type
=
particle
.
p_type
print
(
"Adding Sphere - Particle "
+
str
(
len
(
blender_particles
))
+
" of "
+
str
(
n_particles
-
1
)
+
" - "
+
this_type
)
bpy
.
ops
.
mesh
.
primitive_uv_sphere_add
()
bpy
.
ops
.
object
.
shade_smooth
()
this_particle
=
bpy
.
context
.
object
this_particle
.
name
=
"part"
+
str
(
particle
.
iDx
)
this_particle
.
location
=
((
particle
.
x
,
particle
.
y
,
particle
.
z
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment