Cleanup: style, use braces in source/ (include disabled blocks)
This commit is contained in:
@@ -135,8 +135,9 @@ static void node_buts_time(uiLayout *layout, bContext *UNUSED(C), PointerRNA *pt
|
||||
|
||||
if (cumap) {
|
||||
cumap->flag |= CUMA_DRAW_CFRA;
|
||||
if (node->custom1 < node->custom2)
|
||||
if (node->custom1 < node->custom2) {
|
||||
cumap->sample[0] = (float)(CFRA - node->custom1) / (float)(node->custom2 - node->custom1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -205,8 +206,9 @@ static void node_browse_tex_cb(bContext *C, void *ntree_v, void *node_v)
|
||||
bNode *node = node_v;
|
||||
Tex *tex;
|
||||
|
||||
if (node->menunr < 1)
|
||||
if (node->menunr < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node->id) {
|
||||
id_us_min(node->id);
|
||||
@@ -220,8 +222,9 @@ static void node_browse_tex_cb(bContext *C, void *ntree_v, void *node_v)
|
||||
|
||||
nodeSetActive(ntree, node);
|
||||
|
||||
if (ntree->type == NTREE_TEXTURE)
|
||||
if (ntree->type == NTREE_TEXTURE) {
|
||||
ntreeTexCheckCyclics(ntree);
|
||||
}
|
||||
|
||||
// allqueue(REDRAWBUTSSHADING, 0);
|
||||
// allqueue(REDRAWNODE, 0);
|
||||
@@ -1143,8 +1146,9 @@ static void node_shader_buts_script_ex(uiLayout *layout, bContext *C, PointerRNA
|
||||
node_shader_buts_script(layout, C, ptr);
|
||||
|
||||
#if 0 /* not implemented yet */
|
||||
if (RNA_enum_get(ptr, "mode") == NODE_SCRIPT_EXTERNAL)
|
||||
if (RNA_enum_get(ptr, "mode") == NODE_SCRIPT_EXTERNAL) {
|
||||
uiItemR(layout, ptr, "use_auto_update", 0, NULL, ICON_NONE);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user