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:
authorToni Alatalo <antont@kyperjokki.fi>2005-09-22 23:41:30 +0400
committerToni Alatalo <antont@kyperjokki.fi>2005-09-22 23:41:30 +0400
commitd2304e5abb93f8efd6763d706af7a929ac69ab8f (patch)
tree472265b74702b306e025cc8eec58fa417fdd610e /source/blender/src/editkey.c
parent18e50e166e8d9497e00cf9cc2a29d3b31390cf84 (diff)
the missing menu selection for the newly added Curve RVKs
Diffstat (limited to 'source/blender/src/editkey.c')
-rw-r--r--source/blender/src/editkey.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/src/editkey.c b/source/blender/src/editkey.c
index 909f29288f0..41d5592f77e 100644
--- a/source/blender/src/editkey.c
+++ b/source/blender/src/editkey.c
@@ -593,15 +593,26 @@ void key_to_curve(KeyBlock *kb, Curve *cu, ListBase *nurb)
-void insert_curvekey(Curve *cu)
+void insert_curvekey(Curve *cu) /* must be fixed for non-UI use when bpy support is added.
+ see insert_meshkey. and fix callers to this of course. */
{
Key *key;
KeyBlock *kb, *kkb;
float curpos;
+ short rel;
if(cu->key==0) {
cu->key= add_key( (ID *)cu);
- default_key_ipo(cu->key);
+ rel = pupmenu("Insert Vertex Keys %t|"
+ "Relative Keys %x1|Absolute Keys %x2");
+
+ switch (rel) {
+ case 1: cu->key->type = KEY_RELATIVE;
+ break;
+ default:
+ default_key_ipo(cu->key);
+ break;
+ }
}
key= cu->key;