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:
authorCampbell Barton <ideasman42@gmail.com>2005-12-30 17:17:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2005-12-30 17:17:15 +0300
commit625c553e2077ec0a252ddd934d4267c61011d61f (patch)
tree766592e408378704a85a1996f4143ba0783e596a /source/blender/src/editcurve.c
parent73dc1ff4af6316bb24bb66d4caef5c1b92e85c78 (diff)
Added a python hook to Joining objects
Object.Join() Seperated the join calls from space.c and view3dmenu into join_menu() in space.c, like the select_group_menu(), okee's from join_curve, join_mesh.. etc are in join_menu() so python can call them without UI menu's in the way. this is also a bit neater since there were 2 places that were doing what join_menu() does now. - Cam
Diffstat (limited to 'source/blender/src/editcurve.c')
-rw-r--r--source/blender/src/editcurve.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c
index d87450e7a72..6c3bbd18df4 100644
--- a/source/blender/src/editcurve.c
+++ b/source/blender/src/editcurve.c
@@ -3289,18 +3289,13 @@ void join_curve(int type)
float imat[4][4], cmat[4][4];
int a;
- if(G.obedit) return;
+ /* if(G.obedit) return; */ /* Alredy checked in join_menu() */
ob= OBACT;
if(ob->type!=type) return;
if(ob->lay & G.vd->lay); else return;
tempbase.first= tempbase.last= 0;
- if(type==OB_SURF) {
- if(okee("Join selected NURBS")==0) return;
- }
- else if(okee("Join selected curves")==0) return;
-
/* trasnform all selected curves inverse in obact */
Mat4Invert(imat, ob->obmat);