move suspicious break statement in drawDispListsolid() to prevent falling through.

This commit is contained in:
Campbell Barton
2013-07-28 11:15:26 +00:00
parent 4982f200fa
commit 6864f2c285
3 changed files with 3 additions and 1 deletions

View File

@@ -3852,8 +3852,8 @@ static void drawDispListsolid(ListBase *lb, Object *ob, const short dflag,
glEnd();
glEnable(GL_LIGHTING);
break;
}
break;
case DL_SURF:
if (dl->index) {

View File

@@ -6392,6 +6392,7 @@ bool RNA_property_equals(PointerRNA *a, PointerRNA *b, PropertyRNA *prop, bool i
PointerRNA propptr_b = RNA_property_pointer_get(b, prop);
return RNA_struct_equals(&propptr_a, &propptr_b, is_strict);
}
break;
}
default:

View File

@@ -288,6 +288,7 @@ static char *rna_ColorRampElement_path(PointerRNA *ptr)
if (RNA_path_resolve(&ramp_ptr, "color_ramp", &ramp_ptr, &prop)) {
COLRAMP_GETPATH;
}
break;
}
}
}