Fix custom can_move settings being reset after using tpt.el
This commit is contained in:
parent
ef04068a85
commit
d1a4c6ad85
@ -249,7 +249,8 @@ int luacon_elementwrite(lua_State* l)
|
|||||||
LuaScriptInterface::LuaSetProperty(l, prop, propertyAddress, 3);
|
LuaScriptInterface::LuaSetProperty(l, prop, propertyAddress, 3);
|
||||||
|
|
||||||
luacon_model->BuildMenus();
|
luacon_model->BuildMenus();
|
||||||
luacon_sim->init_can_move();
|
auto *luacon_ci = static_cast<LuaScriptInterface *>(commandInterface);
|
||||||
|
luacon_ci->custom_init_can_move();
|
||||||
std::fill(&luacon_ren->graphicscache[0], &luacon_ren->graphicscache[0] + PT_NUM, gcache_item());
|
std::fill(&luacon_ren->graphicscache[0], &luacon_ren->graphicscache[0] + PT_NUM, gcache_item());
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user