Fix can_move being set up too early

As in, before element properties were populated. This broke everything that depended on can_move, probably most notably particle displacement based on the Weight property. It didn't help that once element properties were populated, any secondary call to init_can_move would fix the symptoms, such as when any custom element is added with Lua.
This commit is contained in:
Tamás Bálint Misius
2023-12-11 22:43:07 +01:00
parent a38e1c48bb
commit ef86110516

View File

@@ -333,9 +333,9 @@ int SimulationData::GetParticleType(ByteString type) const
SimulationData::SimulationData()
{
init_can_move();
msections = LoadMenus();
wtypes = LoadWalls();
elements = GetElements();
tools = GetTools();
init_can_move();
}