[gimp/metadata-browser] sphere-designer: Lessen code
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] sphere-designer: Lessen code
- Date: Fri, 2 Dec 2011 02:02:32 +0000 (UTC)
commit 5fabcb2c31a019cd35745b37666ba1a29d29d0aa
Author: Mukund Sivaraman <muks banu com>
Date: Mon Oct 3 12:52:46 2011 +0530
sphere-designer: Lessen code
plug-ins/common/sphere-designer.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/common/sphere-designer.c b/plug-ins/common/sphere-designer.c
index 177aa47..51ee025 100644
--- a/plug-ins/common/sphere-designer.c
+++ b/plug-ins/common/sphere-designer.c
@@ -1380,7 +1380,7 @@ calclight (GimpVector4 * col, GimpVector4 * point, common * obj)
static void
calcphong (common * obj, ray * r2, GimpVector4 * col)
{
- gint i, j, o;
+ gint i, j;
ray r;
gdouble b;
GimpVector4 lcol;
@@ -1403,11 +1403,8 @@ calcphong (common * obj, ray * r2, GimpVector4 * col)
vcopy (&r.v2, &world.light[i].a);
vmix (&r.v1, &r.v1, &r.v2, 0.9999);
- o = traceray (&r, NULL, -1, 1.0);
- if (o)
- {
- continue;
- }
+ if (traceray (&r, NULL, -1, 1.0))
+ continue;
/* OK, light is visible */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]