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-10-31 02:13:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-31 02:13:28 +0400
commitbced18155ffc525dc513d097245fe3954acbb900 (patch)
tree0fe383cdc8cae39ceee343a51b669b2b30b6a9c3 /source/blender/editors/sculpt_paint
parent1a746911d653c7abe6960df4ff5491ebd92e756a (diff)
fix for uninitialized value use in newly added fcurve normalized view.
also quiet warning without openmp.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_mask.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c
index 2e9efcc02b2..87e267b1072 100644
--- a/source/blender/editors/sculpt_paint/paint_mask.c
+++ b/source/blender/editors/sculpt_paint/paint_mask.c
@@ -165,7 +165,9 @@ static int is_effected(float planes[4][4], const float co[3])
int do_sculpt_mask_box_select(ViewContext *vc, rcti *rect, bool select, bool UNUSED(extend))
{
+#ifdef _OPENMP
Sculpt *sd = vc->scene->toolsettings->sculpt;
+#endif
BoundBox bb;
bglMats mats = {{0}};
float clip_planes[4][4];
@@ -198,7 +200,7 @@ int do_sculpt_mask_box_select(ViewContext *vc, rcti *rect, bool select, bool UNU
sculpt_undo_push_begin("Mask box fill");
- #pragma omp parallel for schedule(guided) if (sd->flags & SCULPT_USE_OPENMP)
+#pragma omp parallel for schedule(guided) if (sd->flags & SCULPT_USE_OPENMP)
for (i = 0; i < totnode; i++) {
PBVHVertexIter vi;