Code cleanup: comments

This commit is contained in:
Campbell Barton 2014-06-15 12:15:28 +10:00
parent fff18e049a
commit 716430ab64
5 changed files with 4 additions and 5 deletions

View File

@ -2023,7 +2023,7 @@ int BKE_imbuf_write(ImBuf *ibuf, const char *name, ImageFormatData *imf)
return(ok);
}
/* same as BKE_imbuf_write() but crappy workaround not to perminantly modify
/* same as BKE_imbuf_write() but crappy workaround not to permanently modify
* _some_, values in the imbuf */
int BKE_imbuf_write_as(ImBuf *ibuf, const char *name, ImageFormatData *imf,
const bool save_copy)

View File

@ -7044,7 +7044,7 @@ void ui_button_activate_do(bContext *C, ARegion *ar, uiBut *but)
void ui_button_execute_begin(struct bContext *UNUSED(C), struct ARegion *ar, uiBut *but, void **active_back)
{
/* note: ideally we would not have to change 'but->active' howevwer
/* note: ideally we would not have to change 'but->active' however
* some functions we call don't use data (as they should be doing) */
uiHandleButtonData *data;
*active_back = but->active;

View File

@ -791,7 +791,6 @@ void view3d_cached_text_draw_add(const float co[3],
const unsigned char col[4])
{
int alloc_len = str_len + 1;
/* TODO, replace with more efficient malloc, perhaps memarena per draw? */
ViewCachedString *vos;
BLI_assert(str_len == strlen(str));

View File

@ -1895,7 +1895,7 @@ ImBuf *IMB_colormanagement_imbuf_for_write(ImBuf *ibuf, bool save_as_render, boo
* so much useful to just ignore alpha -- it leads to bad
* artifacts especially when saving byte images.
*
* What we do here is we're overing our image on top of
* What we do here is we're overlaying our image on top of
* background color (which is currently black).
*
* This is quite much the same as what Gimp does and it

View File

@ -3349,7 +3349,7 @@ void WM_set_locked_interface(wmWindowManager *wm, bool lock)
*
* TODO(sergey): Make it different locked states, so different jobs
* could lock different areas of blender and allow
* interation with others?
* interaction with others?
*/
BKE_spacedata_draw_locks(lock);
}