Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-09-30 19:04:46 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-09-30 19:04:46 +0400
commit168ffbfb67302c7ee2d2d17941c0b3f8324d00e5 (patch)
tree7a6c8abefec9661fc77bcefe4b4bba6c8a832946 /source/blender/gpu/intern/gpu_draw.c
parent4b6be3c19b22af74b2f5aa2f60f38662e6c4c113 (diff)
Revert changes made to support diffuse color when sculpting
This changes are not stable enough and trying fix it could backfire in some other regressions which isn't wanted so much close to the release. This means objects will have gray color as diffuse which becomes darker in masked areas for 2.64. Proper fix is aimed for 2.65. This commit reverts 50827 and 50898.
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 60e3c19a419..962bb0aed22 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -1440,21 +1440,6 @@ void GPU_disable_material(void)
GPU_set_material_alpha_blend(GPU_BLEND_SOLID);
}
-void GPU_material_diffuse_get(int nr, float diff[4])
-{
- /* prevent index to use un-initialized array items */
- if (nr >= GMS.totmat)
- nr = 0;
-
- /* no GPU_begin_object_materials, use default material */
- if (!GMS.matbuf) {
- mul_v3_v3fl(diff, &defmaterial.r, defmaterial.ref + defmaterial.emit);
- }
- else {
- copy_v4_v4(diff, GMS.matbuf[nr].diff);
- }
-}
-
void GPU_end_object_materials(void)
{
GPU_disable_material();