mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix an incorrect assert in lnor code.
There is one case where we do can have only two edges for two loops...
This commit is contained in:
parent
48d4b80246
commit
a1bb0d698b
1 changed files with 3 additions and 1 deletions
|
|
@ -387,7 +387,9 @@ void BKE_lnor_space_define(MLoopNorSpace *lnor_space, const float lnor[3],
|
|||
BLI_stack_discard(edge_vectors);
|
||||
nbr++;
|
||||
}
|
||||
BLI_assert(nbr > 2); /* This piece of code shall only be called for more than one loop... */
|
||||
/* Note: In theory, this could be 'nbr > 2', but there is one case where we only have two edges for
|
||||
* two loops: a smooth vertex with only two edges and two faces (our Monkey's nose has that, e.g.). */
|
||||
BLI_assert(nbr >= 2); /* This piece of code shall only be called for more than one loop... */
|
||||
lnor_space->ref_alpha = alpha / (float)nbr;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue