forked from bartvdbraak/blender
Fix #26571: slow approximate AO with zero area faces.
This commit is contained in:
parent
26dd18e7ce
commit
261f74115d
@ -613,7 +613,8 @@ static void occ_build_recursive(OcclusionTree *tree, OccNode *node, int begin, i
|
|||||||
|
|
||||||
/* compute maximum distance from center */
|
/* compute maximum distance from center */
|
||||||
node->dco= 0.0f;
|
node->dco= 0.0f;
|
||||||
occ_build_dco(tree, node, node->co, &node->dco);
|
if(node->area > 0.0f)
|
||||||
|
occ_build_dco(tree, node, node->co, &node->dco);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void occ_build_sh_normalize(OccNode *node)
|
static void occ_build_sh_normalize(OccNode *node)
|
||||||
|
Loading…
Reference in New Issue
Block a user