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 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 // Per transform event, if present | 1127 // Per transform event, if present |
1128 if (t->handleEvent) | 1128 if (t->handleEvent) |
1129 t->redraw |= t->handleEvent(t, event); | 1129 t->redraw |= t->handleEvent(t, event); |
1130 | 1130 |
1131 if (handled || t->redraw) | 1131 if (handled || t->redraw) |
1132 return 0; | 1132 return 0; |
1133 else | 1133 else |
1134 return OPERATOR_PASS_THROUGH; | 1134 return OPERATOR_PASS_THROUGH; |
1135 } | 1135 } |
1136 | 1136 |
1137 int calculateTransformCenter(bContext *C, int centerMode, float *cent3d, int *ce
nt2d) | 1137 int calculateTransformCenter(bContext *C, int centerMode, float *cent3d, int *ce
nt2d) |
1138 { | 1138 { |
1139 TransInfo *t = MEM_callocN(sizeof(TransInfo), "TransInfo data"); | 1139 TransInfo *t = MEM_callocN(sizeof(TransInfo), "TransInfo data"); |
1140 int success = 1; | 1140 int success = 1; |
1141 | 1141 |
1142 t->state = TRANS_RUNNING; | 1142 t->state = TRANS_RUNNING; |
1143 | 1143 |
1144 t->options = CTX_NONE; | 1144 t->options = CTX_NONE; |
1145 | 1145 |
1146 t->mode = TFM_DUMMY; | 1146 t->mode = TFM_DUMMY; |
1147 | 1147 |
(...skipping 4769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5917 return 1; | 5917 return 1; |
5918 } | 5918 } |
5919 | 5919 |
5920 /* ************************************ */ | 5920 /* ************************************ */ |
5921 | 5921 |
5922 void BIF_TransformSetUndo(const char *UNUSED(str)) | 5922 void BIF_TransformSetUndo(const char *UNUSED(str)) |
5923 { | 5923 { |
5924 // TRANSFORM_FIX_ME | 5924 // TRANSFORM_FIX_ME |
5925 //Trans.undostr= str; | 5925 //Trans.undostr= str; |
5926 } | 5926 } |
LEFT | RIGHT |