THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/02/2005 at 10:39, xxxxxxxx wrote:
Here's the code snippet:
// - Merge loaded Scene with Active Document
if (merge && mergeDocument)
{
AutoAlloc<AliasTrans> trans;
if (!trans) throw ErrorException(ERROR_MEMORY, "iPDialog.LoadScene.trans");
if (!trans->Init(baseDocument)) throw ErrorException(ERROR_GENERAL, GeLoadString(ERROR_ALIASTRANS_TEXT));
BaseMaterial *material, *cmat;
mergeDocument->StartUndo();
for (material = baseDocument->GetFirstMaterial(); material; material = material->GetNext())
{
cmat = (BaseMaterial* )material->GetClone(0, trans);
mergeDocument->InsertMaterial(cmat, NULL, TRUE);
mergeDocument->AddUndo(UNDO_NEW, cmat);
}
mergeDocument->EndUndo();
mergeDocument->StartUndo();
group = (BaseObject * )(baseDocument->GetFirstObject()->GetClone(0, trans));
mergeDocument->InsertObject(group, NULL, NULL, TRUE);
mergeDocument->AddUndo(UNDO_NEW, group);
mergeDocument->EndUndo();
trans->Translate(TRUE);
KillDocument(baseDocument);
}
EventAdd(EVENT_FORCEREDRAW);
I have realized that it could be that last statement (EventAdd()) which is causing this, but have not checked yet.
Where would I find the Editor camera?
Thanks,