[#17433] Cannot break node links with LMB drag under linux.
authorMartin Poirier <theeth@yahoo.com>
Sun, 24 Aug 2008 15:22:44 +0000 (15:22 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sun, 24 Aug 2008 15:22:44 +0000 (15:22 +0000)
Grease pencil commit added some panel draw code or whatnot which seems to change the matrix stack in unwanted (in this case) ways. Reset to identity fixes it.

* I don't think it was limited to Linux though

source/blender/src/editnode.c

index 98f4f1bb46f8e4c60c96375cedce37741c0c8366..eba6c5b448890526d33154630ff8171cece183c2 100644 (file)
@@ -2110,6 +2110,7 @@ static void node_border_link_delete(SpaceNode *snode)
                        mval[1]= rect.ymax;
                        areamouseco_to_ipoco(&snode->v2d, mval, &rectf.xmax, &rectf.ymax);
                        
+                       glLoadIdentity();
                        myortho2(rectf.xmin, rectf.xmax, rectf.ymin, rectf.ymax);
                        
                        glSelectBuffer(256, buffer);