Jump to content

[SOLVED] Crash when removing bones from RagDoll body.


photo

Recommended Posts

Posted

Hi,

I've found following issue in Unigine code.

 

In method:

void BodyRagDoll::setBones(Node *node) //(defined in BodyRagDoll.cpp)

 

there is used operator-> on pointer that can be NULL.

It is done without checking, so calling body.setBones(NULL) (to clear existing bones) results in crash.

 

Scenario to reproduce crash in editor:

1. Add ObjectMeshSkinned to scene.

2. Set RagDoll body for object.

3. Click "Create" bones on Body Tab.

4. Click "Remove" bones on Body Tab.

 

There is similar issue with Image pointer in

void ObjectGrassWorld::setImage(Image *i) // line:107, ObjectGrass.cpp

  • Like 1
Posted

Thank you, we will surely check this issue.

Posted

Thanks, fixed. However, I can't see the problem with ObjectGrass.

×
×
  • Create New...