mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +00:00
Interpret ESM::Light::mSound as identifier not a path
This commit is contained in:
parent
5446906b30
commit
017f3d5484
@ -41,9 +41,8 @@ namespace MWLua
|
|||||||
record["icon"] = sol::readonly_property([vfs](const ESM::Light& rec) -> std::string {
|
record["icon"] = sol::readonly_property([vfs](const ESM::Light& rec) -> std::string {
|
||||||
return Misc::ResourceHelpers::correctIconPath(rec.mIcon, vfs);
|
return Misc::ResourceHelpers::correctIconPath(rec.mIcon, vfs);
|
||||||
});
|
});
|
||||||
record["sound"] = sol::readonly_property([vfs](const ESM::Light& rec) -> std::string {
|
record["sound"]
|
||||||
return Misc::ResourceHelpers::correctSoundPath(rec.mSound.getRefIdString(), vfs);
|
= sol::readonly_property([](const ESM::Light& rec) -> std::string { return rec.mSound.getRefIdString(); });
|
||||||
});
|
|
||||||
record["mwscript"]
|
record["mwscript"]
|
||||||
= sol::readonly_property([](const ESM::Light& rec) -> std::string { return rec.mScript.getRefIdString(); });
|
= sol::readonly_property([](const ESM::Light& rec) -> std::string { return rec.mScript.getRefIdString(); });
|
||||||
record["weight"] = sol::readonly_property([](const ESM::Light& rec) -> float { return rec.mData.mWeight; });
|
record["weight"] = sol::readonly_property([](const ESM::Light& rec) -> float { return rec.mData.mWeight; });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user