diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-06 01:59:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-06 01:59:30 +0400 |
commit | 7874447e4a75d77eddacb0b0186ea1e9f2c76596 (patch) | |
tree | 3f90178c6e00541710d7aa682fcf972ec768a94f /source/blender/editors/sculpt_paint | |
parent | 53dccd94a46cc68347a2e787bd6f8930463cd9a9 (diff) |
code cleanup: typo and warning when openmp's disabled.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_mask.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c index 87e267b1072..980223e24c0 100644 --- a/source/blender/editors/sculpt_paint/paint_mask.c +++ b/source/blender/editors/sculpt_paint/paint_mask.c @@ -277,8 +277,9 @@ static int paint_mask_gesture_lasso_exec(bContext *C, wmOperator *op) Object *ob; ViewContext vc; LassoMaskData data; +#ifdef _OPENMP Sculpt *sd = CTX_data_tool_settings(C)->sculpt; - +#endif struct MultiresModifierData *mmd; DerivedMesh *dm; PBVH *pbvh; @@ -322,7 +323,7 @@ static int paint_mask_gesture_lasso_exec(bContext *C, wmOperator *op) sculpt_undo_push_begin("Mask lasso 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; |