Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Context not available. | |||||
| (ELEM(t->obedit_type, OB_MESH)))); | (ELEM(t->obedit_type, OB_MESH)))); | ||||
| } | } | ||||
| /* ************************** SPACE DEPENDANT CODE **************************** */ | /* ************************** SPACE DEPENDENT CODE **************************** */ | ||||
| void setTransformViewMatrices(TransInfo *t) | void setTransformViewMatrices(TransInfo *t) | ||||
| { | { | ||||
| Context not available. | |||||
| /* draw autokeyframing hint in the corner | /* draw autokeyframing hint in the corner | ||||
| * - only draw if enabled (advanced users may be distracted/annoyed), | * - only draw if enabled (advanced users may be distracted/annoyed), | ||||
| * for objects that will be autokeyframed (no point ohterwise), | * for objects that will be autokeyframed (no point otherwise), | ||||
| * AND only for the active region (as showing all is too overwhelming) | * AND only for the active region (as showing all is too overwhelming) | ||||
| */ | */ | ||||
| if ((U.autokey_flag & AUTOKEY_FLAG_NOWARNING) == 0) { | if ((U.autokey_flag & AUTOKEY_FLAG_NOWARNING) == 0) { | ||||
| Context not available. | |||||
| mul_m4_m3m4(cob.matrix, td->mtx, cob.matrix); | mul_m4_m3m4(cob.matrix, td->mtx, cob.matrix); | ||||
| } | } | ||||
| else if (con->ownspace != CONSTRAINT_SPACE_LOCAL) { | else if (con->ownspace != CONSTRAINT_SPACE_LOCAL) { | ||||
| /* skip... incompatable spacetype */ | /* skip... incompatible spacetype */ | ||||
| continue; | continue; | ||||
| } | } | ||||
| Context not available. | |||||
| if ((data->flag2 & LIMIT_TRANSFORM) == 0) | if ((data->flag2 & LIMIT_TRANSFORM) == 0) | ||||
| continue; | continue; | ||||
| /* skip incompatable spacetypes */ | /* skip incompatible spacetypes */ | ||||
| if (!ELEM(con->ownspace, CONSTRAINT_SPACE_WORLD, CONSTRAINT_SPACE_LOCAL)) | if (!ELEM(con->ownspace, CONSTRAINT_SPACE_WORLD, CONSTRAINT_SPACE_LOCAL)) | ||||
| continue; | continue; | ||||
| Context not available. | |||||
| setCustomPoints(t, &t->mouse, sld->mval_end, sld->mval_start); | setCustomPoints(t, &t->mouse, sld->mval_end, sld->mval_start); | ||||
| /* setCustomPoints isn't normally changing as the mouse moves, | /* setCustomPoints isn't normally changing as the mouse moves, | ||||
| * in this case apply mouse input immediatly so we don't refresh | * in this case apply mouse input immediately so we don't refresh | ||||
| * with the value from the previous points */ | * with the value from the previous points */ | ||||
| applyMouseInput(t, &t->mouse, t->mval, t->values); | applyMouseInput(t, &t->mouse, t->mval, t->values); | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| /* setCustomPoints isn't normally changing as the mouse moves, | /* setCustomPoints isn't normally changing as the mouse moves, | ||||
| * in this case apply mouse input immediatly so we don't refresh | * in this case apply mouse input immediately so we don't refresh | ||||
| * with the value from the previous points */ | * with the value from the previous points */ | ||||
| applyMouseInput(t, &t->mouse, t->mval, t->values); | applyMouseInput(t, &t->mouse, t->mval, t->values); | ||||
| } | } | ||||
| Context not available. | |||||