style cleanup: stop the style checker script from complaining about '!*ptr'
This commit is contained in:
@@ -1237,7 +1237,7 @@ static void dfs_find_nearest_begin(BVHNearestData *data, BVHNode *node)
|
||||
|
||||
#define DEFAULT_FIND_NEAREST_HEAP_SIZE 1024
|
||||
|
||||
#define NodeDistance_priority(a, b) ( (a).dist < (b).dist)
|
||||
#define NodeDistance_priority(a, b) ((a).dist < (b).dist)
|
||||
|
||||
static void NodeDistance_push_heap(NodeDistance *heap, int heap_size)
|
||||
PUSH_HEAP_BODY(NodeDistance, NodeDistance_priority, heap, heap_size)
|
||||
|
||||
@@ -1906,7 +1906,7 @@ void pseudoinverse_m4_m4(float Ainv[4][4], float A[4][4], float epsilon)
|
||||
void pseudoinverse_m3_m3(float Ainv[3][3], float A[3][3], float epsilon)
|
||||
{
|
||||
/* try regular inverse when possible, otherwise fall back to slow svd */
|
||||
if(!invert_m3_m3(Ainv, A)) {
|
||||
if (!invert_m3_m3(Ainv, A)) {
|
||||
float tmp[4][4], tmpinv[4][4];
|
||||
|
||||
copy_m4_m3(tmp, A);
|
||||
|
||||
@@ -425,7 +425,7 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
|
||||
/* IDProperty *prop;*/
|
||||
char buf[512];
|
||||
float fonth, fontw, aspect = but->block->aspect;
|
||||
int winx, winy, ofsx, ofsy, w, h, a;
|
||||
int winx /*, winy */, ofsx, ofsy, w, h, a;
|
||||
rctf rect_fl;
|
||||
rcti rect_i;
|
||||
|
||||
@@ -675,7 +675,7 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
|
||||
}
|
||||
|
||||
winx = WM_window_pixels_x(win);
|
||||
winy = WM_window_pixels_y(win);
|
||||
// winy = WM_window_pixels_y(win); /* UNUSED */
|
||||
//wm_window_get_size(win, &winx, &winy);
|
||||
|
||||
if (rect_i.xmax > winx) {
|
||||
@@ -1109,7 +1109,7 @@ ARegion *ui_searchbox_create(bContext *C, ARegion *butregion, uiBut *but)
|
||||
float aspect = but->block->aspect;
|
||||
rctf rect_fl;
|
||||
rcti rect_i;
|
||||
int winx, winy, ofsx, ofsy;
|
||||
int winx /*, winy */, ofsx, ofsy;
|
||||
int i;
|
||||
|
||||
/* create area region */
|
||||
@@ -1191,7 +1191,7 @@ ARegion *ui_searchbox_create(bContext *C, ARegion *butregion, uiBut *but)
|
||||
BLI_rcti_translate(&rect_i, butregion->winrct.xmin, butregion->winrct.ymin);
|
||||
|
||||
winx = WM_window_pixels_x(win);
|
||||
winy = WM_window_pixels_y(win);
|
||||
// winy = WM_window_pixels_y(win); /* UNUSED */
|
||||
//wm_window_get_size(win, &winx, &winy);
|
||||
|
||||
if (rect_i.xmax > winx) {
|
||||
|
||||
Reference in New Issue
Block a user