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:
authorTon Roosendaal <ton@blender.org>2006-04-02 15:41:46 +0400
committerTon Roosendaal <ton@blender.org>2006-04-02 15:41:46 +0400
commit3be5302e40fd837517d6721b76cb8a9264402ee8 (patch)
tree701663c9c3b6805b3809e19f6e71c09d79e8ebc2
parent1b50d353b7eaf629d346fc5f49a90640eb30d426 (diff)
Added proper initialize for curve pointer, fix for commit of march 24th.
-rw-r--r--source/blender/src/editobject.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index 680283caadc..81813ebea7a 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -1720,10 +1720,12 @@ void docentre(int centremode)
}
}
else if ELEM(base->object->type, OB_CURVE, OB_SURF) {
-
- if(G.obedit) {
+
+ /* totally weak code here... (ton) */
+ if(G.obedit==base->object) {
extern ListBase editNurb;
nu1= editNurb.first;
+ cu= G.obedit->data;
}
else {
cu= base->object->data;