diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index 32c152488d1..22b10e0a3f0 100644 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -365,7 +365,7 @@ int addMatrixSpace(float mat[3][3], char name[]) { BIF_undo_push("Add/Update Transform Orientation"); - return BIF_countTransformOrientation() - 1; + return index; } void BIF_removeTransformOrientation(TransformOrientation *target) {