oops, animcontrols are lost now that leak is patched

This commit is contained in:
David Rose 2002-02-05 00:16:21 +00:00
parent 7c63083463
commit 8082344eae
2 changed files with 6 additions and 2 deletions

View File

@ -1296,6 +1296,9 @@ int framework_main(int argc, char *argv[]) {
root = new NamedNode("root");
first_arc = new RenderRelation(render, root, 100);
// This will hold the AnimControls for animated characters.
AnimControlCollection anim_controls;
////// for gridded stuff
PT_Node *pNodeArr=NULL;
RenderRelation **pRRptrArr=NULL;
@ -1519,7 +1522,6 @@ int framework_main(int argc, char *argv[]) {
// If we happened to load up both a character file and its
// matching animation file, attempt to bind them together now.
AnimControlCollection anim_controls;
auto_bind(root, anim_controls, ~0);
anim_controls.loop_all(true);
}

View File

@ -1399,6 +1399,9 @@ int framework_main(int argc, char *argv[]) {
root = new NamedNode("root");
first_arc = new RenderRelation(render, root, 100);
// This will hold the AnimControls for animated characters.
AnimControlCollection anim_controls;
////// for gridded stuff
PT_Node *pNodeArr=NULL;
RenderRelation **pRRptrArr=NULL;
@ -1622,7 +1625,6 @@ int framework_main(int argc, char *argv[]) {
// If we happened to load up both a character file and its
// matching animation file, attempt to bind them together now.
AnimControlCollection anim_controls;
auto_bind(root, anim_controls, ~0);
anim_controls.loop_all(true);
}