From 8714ae09f89426242ecd0c65f3291de1a2b51fc4 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 7 Apr 2014 12:10:37 +0200 Subject: Fix T39563: Tiny unit-display problem in constraint panels. There is no good solution here, since RNA props can only have one type/unit. Tried to find the less worse one - have different RNA props for same DNA value (a bit like the angle/length for camera lens). Also fixed two other issues with Transform conctraint: * Angle were still in degrees (yes, another backward-compatibility breacking). * Scale was absolute, unlike loc/rot. Also cleaned up a bit the code, replaced some magic numbers by proper enums, ... --- source/blender/makesdna/DNA_constraint_types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index 29e49a970d8..999c66911bc 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -557,6 +557,13 @@ typedef enum eCopyScale_Flags { SIZELIKE_OFFSET = (1<<3) } eCopyScale_Flags; +/* bTransformConstraint.to/from */ +typedef enum eTransform_ToFrom { + TRANS_LOCATION = 0, + TRANS_ROTATION = 1, + TRANS_SCALE = 2, +} eTransform_ToFrom; + /* bSameVolumeConstraint.flag */ typedef enum eSameVolume_Modes { SAMEVOL_X = 0, -- cgit v1.2.3