Two little bugs showing up in workshop;
authorTon Roosendaal <ton@blender.org>
Fri, 8 Jul 2005 06:55:10 +0000 (06:55 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 8 Jul 2005 06:55:10 +0000 (06:55 +0000)
- update_for_new_frame() (on frame advance, alt+a) crashed when no 3d view
  was opened ever (NULL pointer)
- using proportional mode on Curve editing wrote beyond end of a malloced
  block. Just a minus one needed here...

source/blender/src/headerbuttons.c
source/blender/src/transform_conversions.c

index 242b544fd73c531d9c5033deb847d422a5cdd9d9..f7373b512eded82f8991b24ed1f68e49c7165e66 100644 (file)
@@ -498,8 +498,8 @@ static void do_update_for_newframe(int mute, int events)
                allqueue(REDRAWALL, 0);
        }
        
-       /* this one applies changes */
-       scene_update_for_newframe(G.scene, G.vd->lay); /* BKE_scene.h */
+       /* this function applies the changes too */
+       scene_update_for_newframe(G.scene, G.vd?G.vd->lay:G.scene->lay); /* BKE_scene.h */
                
        /* manipulators like updates too */
        for(sa=G.curscreen->areabase.first; sa; sa=sa->next) {
index 11753360ec1d30d0ff95b9c8fb8c319532cb4854..31d656b19f338c569cd802536cd22815afb60cb6 100755 (executable)
@@ -777,7 +777,7 @@ static void createTransCurveVerts(TransInfo *t)
                                }
                        }
                        if (propmode && head != tail)
-                               calc_distanceCurveVerts(head, tail);
+                               calc_distanceCurveVerts(head, tail-1);
                }
                else {
                        TransData *head, *tail;