Code cleanup: spelling & style
This commit is contained in:
@@ -113,7 +113,7 @@ static int vgroup_add_unique_bone_cb(Object *ob, Bone *bone, void *UNUSED(ptr))
|
|||||||
{
|
{
|
||||||
/* This group creates a vertex group to ob that has the
|
/* This group creates a vertex group to ob that has the
|
||||||
* same name as bone (provided the bone is skinnable).
|
* same name as bone (provided the bone is skinnable).
|
||||||
* If such a vertex group aleady exist the routine exits.
|
* If such a vertex group already exist the routine exits.
|
||||||
*/
|
*/
|
||||||
if (!(bone->flag & BONE_NO_DEFORM)) {
|
if (!(bone->flag & BONE_NO_DEFORM)) {
|
||||||
if (!defgroup_find_name(ob, bone->name)) {
|
if (!defgroup_find_name(ob, bone->name)) {
|
||||||
|
@@ -1901,7 +1901,7 @@ static float ui_get_but_step_unit(uiBut *but, float step_default)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \param float_precision For number buttons the precission to use or -1 to fallback to the button default.
|
* \param float_precision For number buttons the precision to use or -1 to fallback to the button default.
|
||||||
*/
|
*/
|
||||||
void ui_get_but_string_ex(uiBut *but, char *str, const size_t maxlen, const int float_precision)
|
void ui_get_but_string_ex(uiBut *but, char *str, const size_t maxlen, const int float_precision)
|
||||||
{
|
{
|
||||||
|
@@ -323,7 +323,7 @@ struct uiButStoreElem {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new button sture, the caller must manage and run #UI_butstore_free
|
* Create a new button store, the caller must manage and run #UI_butstore_free
|
||||||
*/
|
*/
|
||||||
uiButStore *UI_butstore_create(uiBlock *block)
|
uiButStore *UI_butstore_create(uiBlock *block)
|
||||||
{
|
{
|
||||||
|
@@ -1146,7 +1146,7 @@ static void ui_text_clip_right_label(uiFontStyle *fstyle, uiBut *but, const rcti
|
|||||||
but->ofs = 0;
|
but->ofs = 0;
|
||||||
|
|
||||||
|
|
||||||
/* First shorten num-buttopns eg,
|
/* First shorten num-buttons eg,
|
||||||
* Translucency: 0.000
|
* Translucency: 0.000
|
||||||
* becomes
|
* becomes
|
||||||
* Trans: 0.000
|
* Trans: 0.000
|
||||||
|
@@ -285,7 +285,7 @@ static void undo_step_num(bContext *C, UndoStack *stack, int step)
|
|||||||
while (a++ != curnum)
|
while (a++ != curnum)
|
||||||
undo_stack_step(C, stack, 1, NULL);
|
undo_stack_step(C, stack, 1, NULL);
|
||||||
}
|
}
|
||||||
else if (curnum < a){
|
else if (curnum < a) {
|
||||||
while (a-- != curnum)
|
while (a-- != curnum)
|
||||||
undo_stack_step(C, stack, -1, NULL);
|
undo_stack_step(C, stack, -1, NULL);
|
||||||
}
|
}
|
||||||
|
@@ -405,7 +405,7 @@ static int transform_modal(bContext *C, wmOperator *op, const wmEvent *event)
|
|||||||
if (mode_prev != t->mode) {
|
if (mode_prev != t->mode) {
|
||||||
/* WARNING: this is not normal to switch operator types
|
/* WARNING: this is not normal to switch operator types
|
||||||
* normally it would not be supported but transform happens
|
* normally it would not be supported but transform happens
|
||||||
* to share callbacks between differernt operators. */
|
* to share callbacks between different operators. */
|
||||||
wmOperatorType *ot_new = NULL;
|
wmOperatorType *ot_new = NULL;
|
||||||
TransformModeItem *item = transform_modes;
|
TransformModeItem *item = transform_modes;
|
||||||
while (item->idname) {
|
while (item->idname) {
|
||||||
|
@@ -573,7 +573,7 @@ void BlenderFileLoader::insertShapeNode(ObjectInstanceRen *obi, int id)
|
|||||||
shape->setFrsMaterial(tmpMat);
|
shape->setFrsMaterial(tmpMat);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// find if the material is aleady in the list
|
// find if the material is already in the list
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
|
@@ -536,7 +536,7 @@ int wm_homefile_read(bContext *C, ReportList *reports, bool from_memory, const c
|
|||||||
char prefstr[FILE_MAX];
|
char prefstr[FILE_MAX];
|
||||||
int success = 0;
|
int success = 0;
|
||||||
|
|
||||||
/* Indicates whether user prefereneces were really load from memory.
|
/* Indicates whether user preferences were really load from memory.
|
||||||
*
|
*
|
||||||
* This is used for versioning code, and for this we can not rely on from_memory
|
* This is used for versioning code, and for this we can not rely on from_memory
|
||||||
* passed via argument. This is because there might be configuration folder
|
* passed via argument. This is because there might be configuration folder
|
||||||
|
Reference in New Issue
Block a user