[Bf-blender-cvs] [46ab5bb] gooseberry: Don't draw 2-sided flat hulls, this just gives ugly Z fighting.
Lukas Tönne
noreply at git.blender.org
Thu Jan 22 19:51:27 CET 2015
Commit: 46ab5bbb583472f80ccf138e8fc0eca99bb24120
Author: Lukas Tönne
Date: Thu Jan 22 18:42:55 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB46ab5bbb583472f80ccf138e8fc0eca99bb24120
Don't draw 2-sided flat hulls, this just gives ugly Z fighting.
===================================================================
M source/blender/editors/space_view3d/drawobject.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 40d96e8..ac246a1 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -4565,7 +4565,7 @@ static void draw_particle_hair_hull(Scene *UNUSED(scene), View3D *v3d, RegionVie
}
}
else {
- if (p > pstart) {
+ if (p > pstart + 1) {
npath = cache[pstart];
segments = max_ii(path->segments, npath->segments);
@@ -4590,7 +4590,7 @@ static void draw_particle_hair_hull(Scene *UNUSED(scene), View3D *v3d, RegionVie
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
- /* fall back to line drawing in case of only 1 child */
+ /* fall back to line drawing in case of only 1 or 2 children */
glVertexPointer(3, GL_FLOAT, sizeof(ParticleCacheKey), path->co);
glNormalPointer(GL_FLOAT, sizeof(ParticleCacheKey), path->vel);
More information about the Bf-blender-cvs
mailing list