~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/python/mathutils/mathutils_Matrix.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * along with this program; if not, write to the Free Software Foundation,
16
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
 *
18
 
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19
 
 * All rights reserved.
20
 
 *
21
18
 * Contributor(s): Michel Selten & Joseph Gilbert
22
19
 *
23
20
 * ***** END GPL LICENSE BLOCK *****
829
826
                mat[0] = 1.0f;
830
827
                mat[3] = 1.0f;
831
828
 
832
 
                if (strcmp(plane, "X") == 0) {
 
829
                if (STREQ(plane, "X")) {
833
830
                        mat[2] = factor;
834
831
                }
835
 
                else if (strcmp(plane, "Y") == 0) {
 
832
                else if (STREQ(plane, "Y")) {
836
833
                        mat[1] = factor;
837
834
                }
838
835
                else {
855
852
                mat[4] = 1.0f;
856
853
                mat[8] = 1.0f;
857
854
 
858
 
                if (strcmp(plane, "XY") == 0) {
 
855
                if (STREQ(plane, "XY")) {
859
856
                        mat[6] = factor[0];
860
857
                        mat[7] = factor[1];
861
858
                }
862
 
                else if (strcmp(plane, "XZ") == 0) {
 
859
                else if (STREQ(plane, "XZ")) {
863
860
                        mat[3] = factor[0];
864
861
                        mat[5] = factor[1];
865
862
                }
866
 
                else if (strcmp(plane, "YZ") == 0) {
 
863
                else if (STREQ(plane, "YZ")) {
867
864
                        mat[1] = factor[0];
868
865
                        mat[2] = factor[1];
869
866
                }