Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 1,838 Lines • ▼ Show 20 Lines | #endif | ||||
| setTransformViewAspect(t, t->aspect); | setTransformViewAspect(t, t->aspect); | ||||
| if (op && (prop = RNA_struct_find_property(op->ptr, "center_override")) && | if (op && (prop = RNA_struct_find_property(op->ptr, "center_override")) && | ||||
| RNA_property_is_set(op->ptr, prop)) { | RNA_property_is_set(op->ptr, prop)) { | ||||
| RNA_property_float_get_array(op->ptr, prop, t->center_global); | RNA_property_float_get_array(op->ptr, prop, t->center_global); | ||||
| mul_v3_v3(t->center_global, t->aspect); | mul_v3_v3(t->center_global, t->aspect); | ||||
| t->flag |= T_OVERRIDE_CENTER; | t->flag |= T_OVERRIDE_CENTER; | ||||
| } | } | ||||
| if (op && (prop = RNA_struct_find_property(op->ptr, "direction")) && | |||||
| RNA_property_is_set(op->ptr, prop)) { | |||||
| RNA_property_float_get_array(op->ptr, prop, t->direction); | |||||
| } | |||||
| setTransformViewMatrices(t); | setTransformViewMatrices(t); | ||||
| initNumInput(&t->num); | initNumInput(&t->num); | ||||
| } | } | ||||
| static void freeTransCustomData(TransInfo *t, TransDataContainer *tc, TransCustomData *custom_data) | static void freeTransCustomData(TransInfo *t, TransDataContainer *tc, TransCustomData *custom_data) | ||||
| { | { | ||||
| if (custom_data->free_cb) { | if (custom_data->free_cb) { | ||||
| ▲ Show 20 Lines • Show All 740 Lines • Show Last 20 Lines | |||||