Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_orientations.c
| Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | static TransformOrientation *createViewSpace(bContext *C, ReportList *UNUSED(reports), | ||||
| } | } | ||||
| return addMatrixSpace(C, mat, name, overwrite); | return addMatrixSpace(C, mat, name, overwrite); | ||||
| } | } | ||||
| static TransformOrientation *createObjectSpace(bContext *C, ReportList *UNUSED(reports), | static TransformOrientation *createObjectSpace(bContext *C, ReportList *UNUSED(reports), | ||||
| const char *name, const bool overwrite) | const char *name, const bool overwrite) | ||||
| { | { | ||||
| Base *base = CTX_data_active_base(C); | ObjectBase *base = CTX_data_active_base(C); | ||||
| Object *ob; | Object *ob; | ||||
| float mat[3][3]; | float mat[3][3]; | ||||
| if (base == NULL) | if (base == NULL) | ||||
| return NULL; | return NULL; | ||||
| ob = base->object; | ob = base->object; | ||||
| ▲ Show 20 Lines • Show All 958 Lines • Show Last 20 Lines | |||||