forked from bartvdbraak/blender
style cleanup
This commit is contained in:
parent
3d4bbd278a
commit
8fd52b3433
@ -33,8 +33,9 @@ shader node_hair_bsdf(
|
||||
getattribute("geom:is_curve", IsStrand);
|
||||
|
||||
if (!IsStrand) {
|
||||
if (backfacing())
|
||||
if (backfacing()) {
|
||||
BSDF = transparent();
|
||||
}
|
||||
else {
|
||||
if (component == "Reflection")
|
||||
BSDF = Color * hair_reflection(Normal, roughnessh, roughnessv, normalize(dPdv), 0.0);
|
||||
@ -43,8 +44,9 @@ shader node_hair_bsdf(
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (backfacing())
|
||||
if (backfacing()) {
|
||||
BSDF = transparent();
|
||||
}
|
||||
else {
|
||||
if (component == "Reflection")
|
||||
BSDF = Color * hair_reflection(Normal, roughnessh, roughnessv, dPdu, -Offset);
|
||||
@ -53,4 +55,3 @@ shader node_hair_bsdf(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ static TexSnapshot secondary_snap = {0};
|
||||
static CursorSnapshot cursor_snap = {0};
|
||||
|
||||
/* delete overlay cursor textures to preserve memory and invalidate all overlay flags */
|
||||
void paint_cursor_delete_textures()
|
||||
void paint_cursor_delete_textures(void)
|
||||
{
|
||||
glDeleteTextures(1, &primary_snap.overlay_texture);
|
||||
glDeleteTextures(1, &secondary_snap.overlay_texture);
|
||||
|
@ -4685,7 +4685,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0, 1000.0);
|
||||
RNA_def_property_ui_text(prop, "Scale",
|
||||
"Instead of automatically normalizing to 0..1, "
|
||||
"apply a user scale to the derivative map.");
|
||||
"apply a user scale to the derivative map");
|
||||
|
||||
/* stamp */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user