diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-03-03 03:17:35 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-03-03 03:17:35 +0400 |
commit | 6e5842e5f8792b0ec336b9bd239cb0b36f953202 (patch) | |
tree | 99f6abb3bcee5050ed7d145f1002e4e3045c5bf1 /source | |
parent | f60c5b8e22836a8d64a4b8fdb92f3d36cd8f6a8f (diff) |
Code clean-up: used copy_m4_m4() and unit_m4() instead of verbose loops.
Based on review comment from Campbell.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp index c5a3642e2c6..fdff9db3d60 100644 --- a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp +++ b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp @@ -194,15 +194,9 @@ static void init_camera(Render *re) freestyle_viewpoint[1] = 0.0; freestyle_viewpoint[2] = 0.0; - for (int i = 0; i < 4; i++) { - for (int j = 0; j < 4; j++) - freestyle_mv[i][j] = (i == j) ? 1.0 : 0.0; - } + unit_m4(freestyle_mv); - for (int i = 0; i < 4; i++) { - for (int j = 0; j < 4; j++) - freestyle_proj[i][j] = re->winmat[i][j]; - } + copy_m4_m4(freestyle_proj, re->winmat); #if 0 print_m4("mv", freestyle_mv); |