Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-06-12 16:55:44 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-06-12 16:55:44 +0400
commitba3a1067fa831d8fa7812049a1c3ee08a6b27bd9 (patch)
treee9cdb13181aafed2be1ce97f1b063d83f7a42dc7 /source/blender/makesrna/intern/rna_nodetree.c
parent22d2faccefb3b44f5f4b6372e4d114c44f27e194 (diff)
Remove magic constants from Track Position node RNA code.
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 04051cf3418..5230390bf00 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -5714,9 +5714,12 @@ static void def_cmp_trackpos(StructRNA *srna)
PropertyRNA *prop;
static EnumPropertyItem position_items[] = {
- {0, "ABSOLUTE", 0, "Absolute", "Output absolute position of a marker"},
- {1, "RELATIVE_START", 0, "Relative Start", "Output position of a marker relative to first marker of a track"},
- {2, "RELATIVE_FRAME", 0, "Relative Frame", "Output position of a marker relative to marker at given frame number"},
+ {CMP_TRACKPOS_ABSOLUTE, "ABSOLUTE", 0,
+ "Absolute", "Output absolute position of a marker"},
+ {CMP_TRACKPOS_RELATIVE_START, "RELATIVE_START", 0,
+ "Relative Start", "Output position of a marker relative to first marker of a track"},
+ {CMP_TRACKPOS_RELATIVE_FRAME, "RELATIVE_FRAME", 0,
+ "Relative Frame", "Output position of a marker relative to marker at given frame number"},
{0, NULL, 0, NULL, NULL}
};