diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-25 13:02:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-25 13:06:51 +0300 |
commit | 29c106924408a508b2f37af9e09d9eb46adc6fad (patch) | |
tree | 1858cfeb59d259a434da39848ee130ae8aa63627 /source/blender/draw/engines/workbench/workbench_deferred.c | |
parent | 7a4d5b78ea061196f7bf1550928680e9f094e38b (diff) |
Cleanup: code style
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_deferred.c')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_deferred.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_deferred.c b/source/blender/draw/engines/workbench/workbench_deferred.c index 39a4197bdf3..4fe3e92f10c 100644 --- a/source/blender/draw/engines/workbench/workbench_deferred.c +++ b/source/blender/draw/engines/workbench/workbench_deferred.c @@ -584,8 +584,7 @@ static WORKBENCH_MaterialData *get_or_create_material_data( copy_v4_v4(material->material_data.diffuse_color, material_template.material_data.diffuse_color); copy_v4_v4(material->material_data.specular_color, material_template.material_data.specular_color); material->material_data.roughness = material_template.material_data.roughness; - if (color_type == V3D_SHADING_TEXTURE_COLOR) - { + if (color_type == V3D_SHADING_TEXTURE_COLOR) { GPUTexture *tex = GPU_texture_from_blender(ima, NULL, GL_TEXTURE_2D, false, 0.0); DRW_shgroup_uniform_texture(material->shgrp, "image", tex); } |