Cleanup: Comments and unused variables.

This commit is contained in:
Thomas Dinges 2014-05-24 07:28:01 +02:00
parent f5055d8688
commit 7fb33e5c43
Notes: blender-bot 2023-02-14 10:35:28 +01:00
Referenced by issue #40427, Compound mesh not updated with Outliner children
Referenced by issue #40343, Levels of Detail causes crash with Armature Modifier
1 changed files with 1 additions and 4 deletions

View File

@ -718,7 +718,7 @@ bool OSLRenderServices::get_background_attribute(KernelGlobals *kg, ShaderData *
return set_attribute_int(f, type, derivatives, val);
}
else if (name == u_path_transparent_depth) {
/* Ray Depth */
/* Transparent Ray Depth */
int f = sd->transparent_depth;
return set_attribute_int(f, type, derivatives, val);
}
@ -758,7 +758,6 @@ bool OSLRenderServices::get_attribute(void *renderstate, bool derivatives, ustri
KernelGlobals *kg = sd->osl_globals;
bool is_curve;
int object;
// int prim;
/* lookup of attribute on another object */
if (object_name != u_empty) {
@ -768,12 +767,10 @@ bool OSLRenderServices::get_attribute(void *renderstate, bool derivatives, ustri
return false;
object = it->second;
// prim = PRIM_NONE;
is_curve = false;
}
else {
object = sd->object;
// prim = sd->prim;
is_curve = (sd->type & PRIMITIVE_ALL_CURVE) != 0;
if (object == OBJECT_NONE)