code cleanup: typo and warning when openmp's disabled.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 5 Nov 2013 21:59:30 +0000 (21:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 5 Nov 2013 21:59:30 +0000 (21:59 +0000)
source/blender/editors/armature/armature_edit.c
source/blender/editors/include/ED_armature.h
source/blender/editors/sculpt_paint/paint_mask.c
source/blender/editors/space_outliner/outliner_draw.c
source/gameengine/Ketsji/KX_Scene.cpp

index 4c90a37e7208d0b3e4d7c08b3bb77b217cdb402a..29eebe86afa6031eb6dc8dbf40e43be6db339c71 100644 (file)
@@ -484,7 +484,7 @@ static int armature_fill_bones_exec(bContext *C, wmOperator *op)
        
        /* the number of joints determines how we fill:
         *  1) between joint and cursor (joint=head, cursor=tail)
-        *  2) between the two joints (order is dependent on active-bone/hierachy)
+        *  2) between the two joints (order is dependent on active-bone/hierarchy)
         *  3+) error (a smarter method involving finding chains needs to be worked out
         */
        count = BLI_countlist(&points);
index e7489e1bc7254a301eb5fcdacdb1a4a6a678fb18..bb4640949c197565dbdc2bba4e271b0c9eada783 100644 (file)
@@ -106,7 +106,7 @@ typedef struct EditBone {
        (((ebone)->flag & BONE_SELECTED) && !((ebone)->flag & BONE_EDITMODE_LOCKED)) \
        )
 
-/* used in bone_select_hierachy() */
+/* used in armature_select_hierarchy_exec() */
 #define BONE_SELECT_PARENT  0
 #define BONE_SELECT_CHILD   1
 
index 87e267b107244cb9434fe9017c1ca4d4ba5ffb8a..980223e24c07e9fcb35d5f425de53774df2b6f74 100644 (file)
@@ -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;
 
index fda8c19d21b9d980228ff28189ea865090161c25..5168c3c873a27f77421351cd26b0de1adbd26b56 100644 (file)
@@ -1624,7 +1624,7 @@ void draw_outliner(const bContext *C)
        /* set matrix for 2d-view controls */
        UI_view2d_view_ortho(v2d);
 
-       /* draw outliner stuff (background, hierachy lines and names) */
+       /* draw outliner stuff (background, hierarchy lines and names) */
        outliner_back(ar);
        block = uiBeginBlock(C, ar, __func__, UI_EMBOSS);
        outliner_draw_tree((bContext *)C, block, scene, ar, soops, &te_edit);
index c3d7d3179b6410ef749ed0708ad4e5897cdfd0d2..5a956ffc0480029950127c04aaf23fb42245e5f0 100644 (file)
@@ -630,7 +630,7 @@ void KX_Scene::ReplicateLogic(KX_GameObject* newobj)
                                newsensorobj = (SCA_IObject*)(*h_obj);
                        if (!newsensorobj)
                        {
-                               // no, then the sensor points outside the hierachy, keep it the same
+                               // no, then the sensor points outside the hierarchy, keep it the same
                                if (m_objectlist->SearchValue(oldsensorobj))
                                        // only replicate links that points to active objects
                                        m_logicmgr->RegisterToSensor(cont,oldsensor);
@@ -670,7 +670,7 @@ void KX_Scene::ReplicateLogic(KX_GameObject* newobj)
 
                        if (!newactuatorobj)
                        {
-                               // no, then the sensor points outside the hierachy, keep it the same
+                               // no, then the sensor points outside the hierarchy, keep it the same
                                if (m_objectlist->SearchValue(oldactuatorobj))
                                        // only replicate links that points to active objects
                                        m_logicmgr->RegisterToActuator(cont,oldactuator);