Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-28 15:15:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-28 15:15:26 +0400
commit6864f2c2857e37e7a1c4f2d8a471c17e8e63e4db (patch)
tree7fc76e6017c4a74fe7170e424cd448b6ad48b452
parent4982f200fadd15bb733128ae03ed737549e2657c (diff)
move suspicious break statement in drawDispListsolid() to prevent falling through.
-rw-r--r--source/blender/editors/space_view3d/drawobject.c2
-rw-r--r--source/blender/makesrna/intern/rna_access.c1
-rw-r--r--source/blender/makesrna/intern/rna_color.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 1d98906a6fb..6383440893d 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -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) {
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 5499386dcf1..7e2d8e8eb62 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -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:
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index ec61c543a9f..ebd06475c79 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -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;
}
}
}