New: Hotkey/menu access in 3D window to add constraints. Works in PoseMode
[blender.git] / source / blender / src / space.c
index 84ddf2c6aa77a83e8516aabce9c66115557918bb..db2ae93cb0add386b04e052e1d5f2c964c4346f7 100644 (file)
@@ -87,6 +87,7 @@
 #include "BIF_drawtext.h"
 #include "BIF_drawscript.h"
 #include "BIF_editarmature.h"
+#include "BIF_editconstraint.h"
 #include "BIF_editfont.h"
 #include "BIF_editkey.h"
 #include "BIF_editlattice.h"
@@ -1157,6 +1158,8 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
                                        else
                                                convertmenu();  /* editobject.c */
                                }
+                               else if(G.qual==(LR_ALTKEY|LR_CTRLKEY)) 
+                                       add_constraint(0);      /* editconstraint.c, generic for objects and posemode */
                                else if((G.qual==LR_SHIFTKEY)) {
                                        view3d_home(1);
                                        curs= give_cursor();