Cleanup: style
This commit is contained in:
@@ -26,7 +26,7 @@ point map_to_tube(vector dir)
|
||||
{
|
||||
float u, v;
|
||||
v = (dir[2] + 1.0) * 0.5;
|
||||
float len = sqrt(dir[0]*dir[0] + dir[1]*dir[1]);
|
||||
float len = sqrt(dir[0] * dir[0] + dir[1] * dir[1]);
|
||||
if (len > 0.0) {
|
||||
u = (1.0 - (atan2(dir[0] / len, dir[1] / len) / M_PI)) * 0.5;
|
||||
}
|
||||
@@ -40,8 +40,8 @@ point map_to_sphere(vector dir)
|
||||
{
|
||||
float len = length(dir);
|
||||
float v, u;
|
||||
if(len > 0.0) {
|
||||
if(dir[0] == 0.0 && dir[1] == 0.0) {
|
||||
if (len > 0.0) {
|
||||
if (dir[0] == 0.0 && dir[1] == 0.0) {
|
||||
u = 0.0; /* Othwise domain error. */
|
||||
}
|
||||
else {
|
||||
|
@@ -93,8 +93,8 @@ shader node_math(
|
||||
Value = Value1 > Value2;
|
||||
else if (type == "Modulo")
|
||||
Value = safe_modulo(Value1, Value2);
|
||||
else if (type == "Absolute")
|
||||
Value = fabs(Value1);
|
||||
else if (type == "Absolute")
|
||||
Value = fabs(Value1);
|
||||
|
||||
if (Clamp)
|
||||
Value = clamp(Value, 0.0, 1.0);
|
||||
|
@@ -580,7 +580,7 @@ static void image_multi_decpass_cb(bContext *C, void *rr_v, void *iuser_v)
|
||||
ImageUser *iuser = iuser_v;
|
||||
RenderLayer *rl;
|
||||
RenderPass *rp;
|
||||
RenderPass *prev= NULL;
|
||||
RenderPass *prev = NULL;
|
||||
int layer = iuser->layer;
|
||||
|
||||
if (RE_HasFakeLayer(rr))
|
||||
|
@@ -117,7 +117,7 @@ void GPU_render_text(MTFace *tface, int mode,
|
||||
|
||||
/* color has been set */
|
||||
if (tface->mode & TF_OBCOL)
|
||||
col= NULL;
|
||||
col = NULL;
|
||||
else if (!col)
|
||||
glColor3f(1.0f, 1.0f, 1.0f);
|
||||
|
||||
|
@@ -43,7 +43,7 @@ void cmp_node_update_default(bNodeTree *UNUSED(ntree), bNode *node)
|
||||
for (sock = node->outputs.first; sock; sock = sock->next) {
|
||||
if (sock->cache) {
|
||||
//free_compbuf(sock->cache);
|
||||
//sock->cache= NULL;
|
||||
//sock->cache = NULL;
|
||||
}
|
||||
}
|
||||
node->need_exec = 1;
|
||||
|
Reference in New Issue
Block a user