Three bugfixes, as reported on release;
authorTon Roosendaal <ton@blender.org>
Tue, 16 Nov 2004 15:08:42 +0000 (15:08 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 16 Nov 2004 15:08:42 +0000 (15:08 +0000)
- loopselect doesnt work proper with vertices outside window
- outliner crash on script select (potential showstopper...)
- make curve parent menu, press ESC, crashed blender

All minimal changes in code. no new development, promised!

source/blender/src/editmesh_loop.c
source/blender/src/editobject.c
source/blender/src/outliner.c

index c6afd55f6c49fa1547346e7b81c57a72b361c0ce..2976b2c3cfb23d2d8708240afe3de5eae49b7be0 100644 (file)
@@ -746,7 +746,7 @@ void loopoperations(char mode)
        if ((G.obedit==0) || (em->faces.first==0)) return;
        
        SetBlenderCursor(BC_VLOOPCURSOR);
-
+       
        /* Clear flags */
        for(eed=em->edges.first; eed; eed=eed->next) eed->f2= 0;
        for(efa= em->faces.first; efa; efa=efa->next) efa->f1= 0;
@@ -1646,6 +1646,9 @@ void loopoperations(char mode)
                                
                        }                       
                        
+                       /* window coords, no clip with vertices f2 flags set (not used) */
+                       calc_meshverts_ext_f2();
+
 
                        /* Determine the % on wich the loop should be cut */
                        getmouseco_areawin(mval);                       
index 93821bc2c09623586360f0b25a9adca9f3c0f3df..a38a6b44f5ae7978eb94c86572f6590e71431887 100644 (file)
@@ -1130,7 +1130,7 @@ void make_parent(void)
                bFollowPathConstraint *data;
 
                mode= pupmenu("Make Parent %t|Normal Parent %x1|Follow Path %x2|Curve Deform %x3");
-               if(mode==0){
+               if(mode<=0){
                        return;
                }
                else if(mode==1) {
@@ -1228,7 +1228,7 @@ void make_parent(void)
                                return;
                        }
        }
-               else {
+       else {
                if(qual & LR_SHIFTKEY) {
                        if(okee("Make parent without inverse")==0) return;
                }
index 194a1608a06328f204e9c9b6b889dd77e117aa9f..7db1318d214bc5022b3e92a1fa79c2f8f098c055 100644 (file)
@@ -1225,7 +1225,7 @@ static int tree_element_active_text(SpaceOops *soops, TreeElement *te, int set)
                
                if(set) {
                        st->text= (Text *)tselem->id;
-                       pop_space_text(st);
+                       st->top= 0;
                        scrarea_queue_redraw(sa);
                }
                else if(st->text==(Text *)tselem->id) return 1;