Two radiosity glitches, bugs #2872 #2881

- add new scene, "Full Copy", didn't copy radio settings
- switch scene didn't reset radiosity baking
  (note that you can only do 1 radiosity scene in Blender, switch scene
  will free the radiosity data)
This commit is contained in:
2005-08-08 09:36:07 +00:00
parent fc8b4b14f5
commit b228c90e24
2 changed files with 6 additions and 1 deletions

View File

@@ -56,6 +56,8 @@
#include "BSE_view.h" #include "BSE_view.h"
#include "radio.h"
#include "blendef.h" /* old */ #include "blendef.h" /* old */
#include "mydevice.h" #include "mydevice.h"
@@ -127,7 +129,8 @@ void set_scene(Scene *sce) /* also see scene.c: set_scene_bg() */
} }
set_scene_bg(G.scene); set_scene_bg(G.scene);
set_radglobal();
/* complete redraw */ /* complete redraw */
allqueue(REDRAWALL, 0); allqueue(REDRAWALL, 0);
allqueue(REDRAWDATASELECT, 0); /* does a remake */ allqueue(REDRAWDATASELECT, 0); /* does a remake */

View File

@@ -338,6 +338,8 @@ Scene *copy_scene(Scene *sce, int level)
single_obdata_users(0); single_obdata_users(0);
single_mat_users_expand(); single_mat_users_expand();
single_tex_users_expand(); single_tex_users_expand();
scen->radio= MEM_dupallocN(sce->radio);
} }
clear_id_newpoins(); clear_id_newpoins();