Jump to content

[SOLVED] Crash whrn painting the mesh clutter


photo

Recommended Posts

Posted

we always had a crash when using painting feature in the mesh clutter. Tested in 2013/08 and 2013/10 builds.
Steps
1:open the valley demo and load editor
2: pick a clutter object, i choose spruce3_clutter
3: in the mesh property, click the pen icon on the mask map.
4: start to remove some trees.
Result engine crash

Posted

Please patch the data/core/editor/editor_mask.h file at 538 line:

 

from:

setNodeSpawnRate(getNodeSizeX() * getNodeSizeY());

 

to:

setNodeSpawnRate(max(old_spawn_rate,min(getNodeSizeX() * getNodeSizeY(),32)));

Posted

it seems fixed by the changes.

thanks Frustum!

 

Yang

×
×
  • Create New...