Skip to content

Conversation

@jdent02
Copy link
Member

@jdent02 jdent02 commented Dec 7, 2017

Plastic BRDF
Material ui redo
Material property cleanup

Modify Blinn export

Material ui redo
Copy link
Member

@dictoon dictoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some local variable names look suspicious and I suggest fixing this even though but it has no real impact.

Great work otherwise, thanks!

if current_layer.glass_reflection_tint_tex != '' and current_layer.glass_reflection_tint_use_tex:
glass_reflection_tint_tex = bpy.data.textures[current_layer.glass_reflection_tint_tex]
layout.prop(glass_reflection_tint_tex.image.colorspace_settings, "name", text="Color Space")
specular_tex = bpy.data.textures[current_layer.glass_reflection_tint_tex]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this variable name is wrong (it's reused in many places). Not that it really makes a difference, but until we refactor all this code to reduce duplication, we should probably use correct names.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to fix this after the fact. I'll merge the PR right away so we can start testing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I’m doing a lot of copy/paste for the BSDF additions. All of the actual property calls are updated but sometimes I miss the variables inside the functions.

@dictoon dictoon merged commit 181ac0e into appleseedhq:master Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants