- don't apply creasing to edges with no adjacent faces... things

go wacky.
This commit is contained in:
Daniel Dunbar 2005-04-10 15:04:52 +00:00
parent 6fabf998e8
commit 6fa9f9b7f5

@ -1209,7 +1209,7 @@ static void ccgSubSurf__sync(CCGSubSurf *ss) {
VertDataMulN(nCo, 1.0f/numEdges);
}
if (sharpCount>1) {
if (sharpCount>1 && v->numFaces) {
VertDataZero(q);
for (i=0; i<v->numEdges; i++) {
@ -1491,7 +1491,7 @@ static void ccgSubSurf__sync(CCGSubSurf *ss) {
VertDataMulN(nCo, 1.0f/numEdges);
}
if (sharpCount>1) {
if (sharpCount>1 && v->numFaces) {
VertDataZero(q);
for (i=0; i<v->numEdges; i++) {
@ -1549,7 +1549,7 @@ static void ccgSubSurf__sync(CCGSubSurf *ss) {
avgSharpness = 0;
}
if (_edge_isBoundary(e) && sharpCount<2) {
if (_edge_isBoundary(e) && (!e->numFaces || sharpCount<2)) {
for (x=1; x<edgeSize-1; x++) {
int fx = x*2;
void *co = EDGE_getCo(e, curLvl, x);