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:
Diffstat (limited to 'source/blender/src/editobject.c')
-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;