LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version.· | 7 * of the License, or (at your option) any later version.· |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 ED_view3d_init_mats_rv3d(ob, rv3d); | 239 ED_view3d_init_mats_rv3d(ob, rv3d); |
240 | 240 |
241 /* we have to multiply instead of loading viewmatob to make | 241 /* we have to multiply instead of loading viewmatob to make |
242 * it work with duplis using displists, otherwise it will | 242 * it work with duplis using displists, otherwise it will |
243 * override the dupli-matrix */ | 243 * override the dupli-matrix */ |
244 glMultMatrixf(ob->obmat); | 244 glMultMatrixf(ob->obmat); |
245 } | 245 } |
246 | 246 |
247 #ifdef DEBUG | 247 #ifdef DEBUG |
248 /* ensure we correctly initialize */ | 248 /* ensure we correctly initialize */ |
249 void ED_view3d_clear_mats_rv3d(struct RegionView3D *rv3d) | |
250 { | |
251 v3d->gridflag &= ~V3D_SHOW_Z; | 249 v3d->gridflag &= ~V3D_SHOW_Z; |
252 ········ | 250 ········ |
253 v3d->flag |= V3D_SELECT_OUTLINE; | 251 v3d->flag |= V3D_SELECT_OUTLINE; |
254 ········ | 252 ········ |
255 v3d->lens= 35.0f; | 253 v3d->lens= 35.0f; |
256 v3d->near= 0.01f; | 254 v3d->near= 0.01f; |
LEFT | RIGHT |