Cycles: Cleanup, style
This commit is contained in:
@@ -902,7 +902,7 @@ bool OpenCLInfo::get_platform_name(cl_platform_id platform_id,
|
||||
string OpenCLInfo::get_platform_name(cl_platform_id platform_id)
|
||||
{
|
||||
string platform_name;
|
||||
if (!get_platform_name(platform_id, &platform_name)) {
|
||||
if(!get_platform_name(platform_id, &platform_name)) {
|
||||
return "";
|
||||
}
|
||||
return platform_name;
|
||||
|
@@ -379,7 +379,7 @@ ccl_device bool shadow_blocked_transparent_stepped(
|
||||
float3 *shadow)
|
||||
{
|
||||
bool blocked, is_transparent_isect;
|
||||
if (skip_object == OBJECT_NONE) {
|
||||
if(skip_object == OBJECT_NONE) {
|
||||
blocked = scene_intersect(kg,
|
||||
*ray,
|
||||
PATH_RAY_SHADOW_OPAQUE,
|
||||
|
@@ -122,7 +122,7 @@ ccl_device void kernel_holdout_emission_blurring_pathtermination_ao(
|
||||
|
||||
#ifdef __SHADOW_TRICKS__
|
||||
if((sd->object_flag & SD_OBJECT_SHADOW_CATCHER)) {
|
||||
if (state->flag & PATH_RAY_CAMERA) {
|
||||
if(state->flag & PATH_RAY_CAMERA) {
|
||||
state->flag |= (PATH_RAY_SHADOW_CATCHER | PATH_RAY_SHADOW_CATCHER_ONLY);
|
||||
state->catcher_object = sd->object;
|
||||
if(!kernel_data.background.transparent) {
|
||||
|
Reference in New Issue
Block a user