IGameMesh::InitializeData crashes when exporting mesh

IGameMesh::InitializeData crashes when exporting mesh

e_juma
Enthusiast Enthusiast
239 Views
1 Reply
Message 1 of 2

IGameMesh::InitializeData crashes when exporting mesh

e_juma
Enthusiast
Enthusiast

It happens when exporting objects in the scene. Do I miss any preparing operations before exporting?

My codes is very simple:

 

 

 

    pIgame->InitialiseIGame(node);
    int count = pIgame->GetTopLevelNodeCount();
    for (int loop = 0; loop < count; loop++)
    {
        IGameNode* child = pIgame->GetTopLevelNode(loop);
        auto name = child->GetName();
        IGameObject* obj = child->GetIGameObject();
        switch (obj->GetIGameType())
        {
            case IGameObject::IGAME_MESH:
            {
                IGameMesh* gm = (IGameMesh*)obj;
                if (gm->InitializeData())

 

 

0 Likes
240 Views
1 Reply
Reply (1)
Message 2 of 2

e_juma
Enthusiast
Enthusiast

The user set the length and width of the plane with a very huge value on UI. And in script window, I can check the value is nan.0.

0 Likes