use const pointers for file loading and booleans for animation system return values passed as pointers.

This commit is contained in:
2013-03-17 19:13:04 +00:00
parent 16b82845ee
commit 09c41019a8
20 changed files with 65 additions and 63 deletions

View File

@@ -155,14 +155,14 @@ bool GPC_Engine::Start(const char *filename)
}
bool GPC_Engine::Start(unsigned char *blenderDataBuffer,
unsigned int blenderDataBufferSize)
bool GPC_Engine::Start(const void *blenderDataBuffer,
unsigned int blenderDataBufferSize)
{
ReportList reports;
BlendFileData *bfd;
BKE_reports_init(&reports, RPT_STORE);
bfd= BLO_read_from_memory(blenderDataBuffer, blenderDataBufferSize, &reports);
bfd = BLO_read_from_memory(blenderDataBuffer, blenderDataBufferSize, &reports);
BKE_reports_clear(&reports);
if (!bfd) {