-> Add/Delete Scene fix
authorGeoffrey Bantle <hairbat@yahoo.com>
Wed, 27 Sep 2006 23:39:19 +0000 (23:39 +0000)
committerGeoffrey Bantle <hairbat@yahoo.com>
Wed, 27 Sep 2006 23:39:19 +0000 (23:39 +0000)
countall() wasn't being called when scenes were being added/deleted.
This caused the info header to temporarily display incorrect information
about scene statistics.

source/blender/src/header_info.c

index bfbd9d1b265a51a76a20389f651202b6687185b7..98f07ca239394487cec7d351c351391688c78945 100644 (file)
 #include "BSE_filesel.h"
 #include "BSE_headerbuttons.h"
 #include "BSE_sequence.h"
+#include "BSE_edit.h"
 
 #include "IMB_imbuf_types.h"
 
@@ -478,6 +479,7 @@ void do_info_buttons(unsigned short event)
                        else sce= copy_scene(G.scene, nr-2);
 
                        set_scene(sce);
+                       countall();
                }
                BIF_preview_changed(ID_TE);
 
@@ -514,6 +516,7 @@ void do_info_buttons(unsigned short event)
                        }
                        free_libblock(&G.main->scene, G.scene);
                        set_scene(sce);
+                       countall();
                }
 
                break;