mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
prepare scene everywhere
This commit is contained in:
parent
b2c21cab7f
commit
7a5a0f67ee
@ -1522,12 +1522,12 @@ int framework_main(int argc, char *argv[]) {
|
||||
AnimControlCollection anim_controls;
|
||||
auto_bind(root, anim_controls, ~0);
|
||||
anim_controls.loop_all(true);
|
||||
|
||||
// Now prepare all the textures with the GSG.
|
||||
NodePath render_path(render);
|
||||
render_path.prepare_scene(main_win->get_gsg());
|
||||
}
|
||||
|
||||
// Now prepare all the textures with the GSG.
|
||||
NodePath render_path(render);
|
||||
render_path.prepare_scene(main_win->get_gsg());
|
||||
|
||||
// Set up keyboard events.
|
||||
event_handler.add_hook("escape", event_esc);
|
||||
event_handler.add_hook("q", event_esc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user