Revision: 43839
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43839
Author: campbellbarton
Date: 2012-02-02 07:37:44 +0000 (Thu, 02 Feb 2012)
Log Message:
-----------
Cleanup Only: replace numbers with defines.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_constraint.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_constraint.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_constraint.c
2012-02-02 05:55:01 UTC (rev 43838)
+++ trunk/blender/source/blender/makesrna/intern/rna_constraint.c
2012-02-02 07:37:44 UTC (rev 43839)
@@ -78,24 +78,24 @@
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem target_space_pchan_items[] = {
- {0, "WORLD", 0, "World Space", "The transformation of the target is
evaluated relative to the world coordinate system"},
- {2, "POSE", 0, "Pose Space", "The transformation of the target is only
evaluated in the Pose Space, the target armature object transformation is
ignored"},
- {3, "LOCAL_WITH_PARENT", 0, "Local With Parent", "The transformation of
the target bone is evaluated relative its local coordinate system, with the
parent transformation added"},
- {1, "LOCAL", 0, "Local Space", "The transformation of the target is
evaluated relative to its local coordinate system"},
+ {CONSTRAINT_SPACE_WORLD, "WORLD", 0, "World Space", "The
transformation of the target is evaluated relative to the world coordinate
system"},
+ {CONSTRAINT_SPACE_POSE, "POSE", 0, "Pose Space", "The
transformation of the target is only evaluated in the Pose Space, the target
armature object transformation is ignored"},
+ {CONSTRAINT_SPACE_PARLOCAL, "LOCAL_WITH_PARENT", 0, "Local With
Parent", "The transformation of the target bone is evaluated relative its local
coordinate system, with the parent transformation added"},
+ {CONSTRAINT_SPACE_LOCAL, "LOCAL", 0, "Local Space", "The
transformation of the target is evaluated relative to its local coordinate
system"},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem owner_space_pchan_items[] = {
- {0, "WORLD", 0, "World Space", "The constraint is applied relative to
the world coordinate system"},
- {2, "POSE", 0, "Pose Space", "The constraint is applied in Pose Space,
the object transformation is ignored"},
- {3, "LOCAL_WITH_PARENT", 0, "Local With Parent", "The constraint is
applied relative to the local coordinate system of the object, with the parent
transformation added"},
- {1, "LOCAL", 0, "Local Space", "The constraint is applied relative to
the local coordinate sytem of the object"},
+ {CONSTRAINT_SPACE_WORLD, "WORLD", 0, "World Space", "The constraint
is applied relative to the world coordinate system"},
+ {CONSTRAINT_SPACE_POSE, "POSE", 0, "Pose Space", "The constraint is
applied in Pose Space, the object transformation is ignored"},
+ {CONSTRAINT_SPACE_PARLOCAL, "LOCAL_WITH_PARENT", 0, "Local With
Parent", "The constraint is applied relative to the local coordinate system of
the object, with the parent transformation added"},
+ {CONSTRAINT_SPACE_LOCAL, "LOCAL", 0, "Local Space", "The constraint
is applied relative to the local coordinate sytem of the object"},
{0, NULL, 0, NULL, NULL}};
#ifdef RNA_RUNTIME
static EnumPropertyItem space_object_items[] = {
- {0, "WORLD", 0, "World Space", "The transformation of the target is
evaluated relative to the world coordinate system"},
- {1, "LOCAL", 0, "Local Space", "The transformation of the target is
evaluated relative to its local coordinate system"},
+ {CONSTRAINT_SPACE_WORLD, "WORLD", 0, "World Space", "The transformation
of the target is evaluated relative to the world coordinate system"},
+ {CONSTRAINT_SPACE_LOCAL, "LOCAL", 0, "Local Space", "The transformation
of the target is evaluated relative to its local coordinate system"},
{0, NULL, 0, NULL, NULL}};
#include "BKE_animsys.h"
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs