fix [#27298] Alt + RMB always extends selection
authorCampbell Barton <ideasman42@gmail.com>
Fri, 6 May 2011 23:46:24 +0000 (23:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 6 May 2011 23:46:24 +0000 (23:46 +0000)
source/blender/blenlib/intern/math_geom.c
source/blender/editors/object/object_select.c

index afce5a602ed11ac8aa2971d3b28ee6d330638bf2..500b0625177d72fa663a5aba4c6fac1fcc6ac440 100644 (file)
@@ -1789,7 +1789,7 @@ void orthographic_m4(float matrix[][4], const float left, const float right, con
        matrix[3][2] = -(farClip + nearClip)/Zdelta;
 }
 
-void perspective_m4(float mat[][4],float left, const float right, const float bottom, const float top, const float nearClip, const float farClip)
+void perspective_m4(float mat[4][4], const float left, const float right, const float bottom, const float top, const float nearClip, const float farClip)
 {
        float Xdelta, Ydelta, Zdelta;
 
index 52486677e87b85f949a4fe60bfadaa1ccaeb5b77..a3bd399a60cea334d2670d7ca5781ffd298ffcf8 100644 (file)
@@ -894,7 +894,7 @@ static int object_select_name_exec(bContext *C, wmOperator *op)
 
        if(!extend) {
                CTX_DATA_BEGIN(C, Base*, base, selectable_bases) {
-                       if((base->flag & SELECT) == 0) {
+                       if(base->flag & SELECT) {
                                ED_base_object_select(base, BA_DESELECT);
                                changed= 1;
                        }