Cleanup: spelling in comments
This commit is contained in:
		@@ -1591,7 +1591,7 @@ void BKE_mesh_transform(Mesh *me, const float mat[4][4], bool do_keys)
 | 
				
			|||||||
  MVert *mvert = CustomData_duplicate_referenced_layer(&me->vdata, CD_MVERT, me->totvert);
 | 
					  MVert *mvert = CustomData_duplicate_referenced_layer(&me->vdata, CD_MVERT, me->totvert);
 | 
				
			||||||
  float(*lnors)[3] = CustomData_duplicate_referenced_layer(&me->ldata, CD_NORMAL, me->totloop);
 | 
					  float(*lnors)[3] = CustomData_duplicate_referenced_layer(&me->ldata, CD_NORMAL, me->totloop);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* If the referenced l;ayer has been re-allocated need to update pointers stored in the mesh. */
 | 
					  /* If the referenced layer has been re-allocated need to update pointers stored in the mesh. */
 | 
				
			||||||
  BKE_mesh_update_customdata_pointers(me, false);
 | 
					  BKE_mesh_update_customdata_pointers(me, false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  for (i = 0; i < me->totvert; i++, mvert++) {
 | 
					  for (i = 0; i < me->totvert; i++, mvert++) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2423,7 +2423,7 @@ static void annotation_add_missing_events(bContext *C,
 | 
				
			|||||||
static int annotation_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
 | 
					static int annotation_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  tGPsdata *p = op->customdata;
 | 
					  tGPsdata *p = op->customdata;
 | 
				
			||||||
  /* default exit state - pass through to support MMB view nav, etc. */
 | 
					  /* Default exit state - pass through to support MMB view navigation, etc. */
 | 
				
			||||||
  int estate = OPERATOR_PASS_THROUGH;
 | 
					  int estate = OPERATOR_PASS_THROUGH;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* NOTE(mike erwin): Not quite what I was looking for, but a good start!
 | 
					  /* NOTE(mike erwin): Not quite what I was looking for, but a good start!
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3568,7 +3568,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event)
 | 
				
			|||||||
  // ToolSettings *ts = CTX_data_tool_settings(C);
 | 
					  // ToolSettings *ts = CTX_data_tool_settings(C);
 | 
				
			||||||
  GP_Sculpt_Guide *guide = &p->scene->toolsettings->gp_sculpt.guide;
 | 
					  GP_Sculpt_Guide *guide = &p->scene->toolsettings->gp_sculpt.guide;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* default exit state - pass through to support MMB view nav, etc. */
 | 
					  /* Default exit state - pass through to support MMB view navigation, etc. */
 | 
				
			||||||
  int estate = OPERATOR_PASS_THROUGH;
 | 
					  int estate = OPERATOR_PASS_THROUGH;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* NOTE(mike erwin): Not quite what I was looking for, but a good start!
 | 
					  /* NOTE(mike erwin): Not quite what I was looking for, but a good start!
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3100,7 +3100,7 @@ void OBJECT_OT_ocean_bake(wmOperatorType *ot)
 | 
				
			|||||||
/** \} */
 | 
					/** \} */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* ------------------------------------------------------------------- */
 | 
					/* ------------------------------------------------------------------- */
 | 
				
			||||||
/** \name Laplaciandeform Bind Operator
 | 
					/** \name Laplacian-Deform Bind Operator
 | 
				
			||||||
 * \{ */
 | 
					 * \{ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool laplaciandeform_poll(bContext *C)
 | 
					static bool laplaciandeform_poll(bContext *C)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -140,7 +140,7 @@ bool ED_workspace_layout_delete(WorkSpace *workspace, WorkSpaceLayout *layout_ol
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  BLI_assert(BLI_findindex(&workspace->layouts, layout_old) != -1);
 | 
					  BLI_assert(BLI_findindex(&workspace->layouts, layout_old) != -1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* don't allow deleting temp fullscreens for now */
 | 
					  /* Don't allow deleting temp full-screens for now. */
 | 
				
			||||||
  if (BKE_screen_is_fullscreen_area(screen_old)) {
 | 
					  if (BKE_screen_is_fullscreen_area(screen_old)) {
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -536,9 +536,9 @@ static void action_listener(const wmSpaceTypeListenerParams *params)
 | 
				
			|||||||
        saction->runtime.flag |= SACTION_RUNTIME_FLAG_NEED_CHAN_SYNC;
 | 
					        saction->runtime.flag |= SACTION_RUNTIME_FLAG_NEED_CHAN_SYNC;
 | 
				
			||||||
        ED_area_tag_refresh(area);
 | 
					        ED_area_tag_refresh(area);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      /* autocolor only really needs to change when channels are added/removed,
 | 
					      /* Auto-color only really needs to change when channels are added/removed,
 | 
				
			||||||
       * or previously hidden stuff appears
 | 
					       * or previously hidden stuff appears
 | 
				
			||||||
       * (assume for now that if just adding these works, that will be fine)
 | 
					       * (assume for now that if just adding these works, that will be fine).
 | 
				
			||||||
       */
 | 
					       */
 | 
				
			||||||
      else if (((wmn->data == ND_KEYFRAME) && ELEM(wmn->action, NA_ADDED, NA_REMOVED)) ||
 | 
					      else if (((wmn->data == ND_KEYFRAME) && ELEM(wmn->action, NA_ADDED, NA_REMOVED)) ||
 | 
				
			||||||
               ((wmn->data == ND_ANIMCHAN) && (wmn->action != NA_SELECTED))) {
 | 
					               ((wmn->data == ND_ANIMCHAN) && (wmn->action != NA_SELECTED))) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -556,8 +556,8 @@ static void graph_listener(const wmSpaceTypeListenerParams *params)
 | 
				
			|||||||
  /* context changes */
 | 
					  /* context changes */
 | 
				
			||||||
  switch (wmn->category) {
 | 
					  switch (wmn->category) {
 | 
				
			||||||
    case NC_ANIMATION:
 | 
					    case NC_ANIMATION:
 | 
				
			||||||
      /* for selection changes of animation data, we can just redraw...
 | 
					      /* For selection changes of animation data, we can just redraw...
 | 
				
			||||||
       * otherwise autocolor might need to be done again */
 | 
					       * otherwise auto-color might need to be done again. */
 | 
				
			||||||
      if (ELEM(wmn->data, ND_KEYFRAME, ND_ANIMCHAN) && (wmn->action == NA_SELECTED)) {
 | 
					      if (ELEM(wmn->data, ND_KEYFRAME, ND_ANIMCHAN) && (wmn->action == NA_SELECTED)) {
 | 
				
			||||||
        ED_area_tag_redraw(area);
 | 
					        ED_area_tag_redraw(area);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -183,7 +183,7 @@ static bool idprop_ui_data_update_int(IDProperty *idprop, PyObject *args, PyObje
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Write back to the proeprty's UI data. */
 | 
					  /* Write back to the properties UI data. */
 | 
				
			||||||
  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
					  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
				
			||||||
  *ui_data_orig = ui_data;
 | 
					  *ui_data_orig = ui_data;
 | 
				
			||||||
  return true;
 | 
					  return true;
 | 
				
			||||||
@@ -310,7 +310,7 @@ static bool idprop_ui_data_update_float(IDProperty *idprop, PyObject *args, PyOb
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Write back to the proeprty's UI data. */
 | 
					  /* Write back to the properties UI data. */
 | 
				
			||||||
  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
					  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
				
			||||||
  *ui_data_orig = ui_data;
 | 
					  *ui_data_orig = ui_data;
 | 
				
			||||||
  return true;
 | 
					  return true;
 | 
				
			||||||
@@ -348,7 +348,7 @@ static bool idprop_ui_data_update_string(IDProperty *idprop, PyObject *args, PyO
 | 
				
			|||||||
    ui_data.default_value = BLI_strdup(default_value);
 | 
					    ui_data.default_value = BLI_strdup(default_value);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Write back to the proeprty's UI data. */
 | 
					  /* Write back to the properties UI data. */
 | 
				
			||||||
  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
					  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
				
			||||||
  *ui_data_orig = ui_data;
 | 
					  *ui_data_orig = ui_data;
 | 
				
			||||||
  return true;
 | 
					  return true;
 | 
				
			||||||
@@ -376,7 +376,7 @@ static bool idprop_ui_data_update_id(IDProperty *idprop, PyObject *args, PyObjec
 | 
				
			|||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Write back to the proeprty's UI data. */
 | 
					  /* Write back to the properties UI data. */
 | 
				
			||||||
  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
					  IDP_ui_data_free_unique_contents(&ui_data_orig->base, IDP_ui_data_type(idprop), &ui_data.base);
 | 
				
			||||||
  *ui_data_orig = ui_data;
 | 
					  *ui_data_orig = ui_data;
 | 
				
			||||||
  return true;
 | 
					  return true;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -41,7 +41,7 @@ struct Sequence;
 | 
				
			|||||||
 * The `__LINE__` is defined at the invocation of the `SEQ_ITERATOR_FOREACH` and is not changed
 | 
					 * The `__LINE__` is defined at the invocation of the `SEQ_ITERATOR_FOREACH` and is not changed
 | 
				
			||||||
 * afterwards. This makes it safe to expand it several times in the `SEQ_ITERATOR_FOREACH`.
 | 
					 * afterwards. This makes it safe to expand it several times in the `SEQ_ITERATOR_FOREACH`.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * This allows to have nested foreach loops.
 | 
					 * This allows to have nested `foreach` loops.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * NOTE: Putting nested loop to a wrapper macro is not supported. */
 | 
					 * NOTE: Putting nested loop to a wrapper macro is not supported. */
 | 
				
			||||||
#define _SEQ_ITERATOR_NAME_JOIN(x, y) x##_##y
 | 
					#define _SEQ_ITERATOR_NAME_JOIN(x, y) x##_##y
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -604,7 +604,7 @@ static const char *wm_context_member_from_ptr(bContext *C, const PointerRNA *ptr
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Calculate the path to `ptr` from constex `C`, or return NULL if it can't be calculated.
 | 
					 * Calculate the path to `ptr` from context `C`, or return NULL if it can't be calculated.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
char *WM_context_path_resolve_property_full(bContext *C,
 | 
					char *WM_context_path_resolve_property_full(bContext *C,
 | 
				
			||||||
                                            const PointerRNA *ptr,
 | 
					                                            const PointerRNA *ptr,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user