~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/KX_Light.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: KX_Light.cpp,v 1.7 2004/07/17 05:28:21 kester Exp $
 
2
 * $Id: KX_Light.cpp,v 1.8 2007/04/04 13:18:39 campbellbarton Exp $
3
3
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
191
191
        {
192
192
                if (attr == "colour" || attr == "color")
193
193
                {
194
 
                        MT_Vector3 colour;
195
 
                        if (PyVecTo(pyvalue, colour))
 
194
                        MT_Vector3 color;
 
195
                        if (PyVecTo(pyvalue, color))
196
196
                        {
197
 
                                m_lightobj.m_red = colour[0];
198
 
                                m_lightobj.m_green = colour[1];
199
 
                                m_lightobj.m_blue = colour[2];
 
197
                                m_lightobj.m_red = color[0];
 
198
                                m_lightobj.m_green = color[1];
 
199
                                m_lightobj.m_blue = color[2];
200
200
                                return 0;
201
201
                        }
202
202
                        return 1;