ZeroCool940711 / Sandbox-Game-Engine

GNU General Public License v3.0
4 stars 1 forks source link

Fix VLO Dirty Tag so it can be enabled again. #3

Open ZeroCool940711 opened 5 years ago

ZeroCool940711 commented 5 years ago

According to src/tools/worldeditor/world/vlo_manager.cpp line 95 the VLO can not be marked as Dirty as it crashes the WorldEditor when saving making it impossible right now to create Water on the Engine.

TODO: BigWorld version 1.9.1
This assert is temporarily disabled to prevent world editor from crashing
due to a bug that occurs when multiple undo/redo operations on water objects
are run in the same frame. This causes the editor to "lose" the water object 
and which thereafter gets destructed and the VeryLargeObject::s_uniqueObjects_ map 
has the UID mapped to NULL.

The assert should be reenabled when the bug is fixed.