mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
recorder: Fix error reading multiple recorders from .bam file
Modified version of #1564 without changing ABI Fixes #1561
This commit is contained in:
parent
4f37d97cf6
commit
be958c409f
@ -228,11 +228,9 @@ make_from_bam(const FactoryParams ¶ms) {
|
||||
RecorderBase *MouseRecorder::
|
||||
make_recorder(const FactoryParams ¶ms) {
|
||||
MouseRecorder *node = new MouseRecorder("");
|
||||
DatagramIterator scan;
|
||||
BamReader *manager;
|
||||
BamReaderParam *param = DCAST(BamReaderParam, params.get_param(0));
|
||||
|
||||
parse_params(params, scan, manager);
|
||||
node->fillin_recorder(scan, manager);
|
||||
node->fillin_recorder((DatagramIterator &)param->get_iterator(), param->get_manager());
|
||||
|
||||
return node;
|
||||
}
|
||||
|
@ -113,11 +113,9 @@ write_recorder(BamWriter *manager, Datagram &dg) {
|
||||
RecorderBase *SocketStreamRecorder::
|
||||
make_recorder(const FactoryParams ¶ms) {
|
||||
SocketStreamRecorder *node = new SocketStreamRecorder;
|
||||
DatagramIterator scan;
|
||||
BamReader *manager;
|
||||
BamReaderParam *param = DCAST(BamReaderParam, params.get_param(0));
|
||||
|
||||
parse_params(params, scan, manager);
|
||||
node->fillin_recorder(scan, manager);
|
||||
node->fillin_recorder((DatagramIterator &)param->get_iterator(), param->get_manager());
|
||||
|
||||
return node;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user