Compare commits

..

12 commits

Author SHA1 Message Date
c4f061aa65 CMakeLists: reorganise the sub-libs. 2023-01-13 10:03:28 +01:00
dc8fd24cb7 CMakeLists: we're working on 1.5 now. 2023-01-13 10:03:24 +01:00
5f43e143dc CMakeLists: change how defines are handled. 2023-01-13 10:02:29 +01:00
03472e56dc Profile,SaveTool: change how materials are handled. 2023-01-13 10:02:29 +01:00
8e0f0e5beb SaveTool: update a TextUnformatted() call. 2023-01-13 10:02:29 +01:00
9c074c24bd Update coding style.
Magnum's type names are fine, but I'd rather limit what depends on
Magnum as much as possible. Vector types are still allowed, though. No
way I'll write my own.
2023-01-13 10:02:29 +01:00
3c2cb001ff Match the new coding style I use. 2023-01-13 10:02:29 +01:00
c1701c19f4 Configuration: add missing licence text. 2023-01-13 10:02:29 +01:00
e336b37d81 SaveTool: move the configuration to its own class. 2023-01-13 10:02:29 +01:00
5ce73712cc SaveTool: add a wrapper over ImGui::Checkbox().
This way, I can make it work like radio buttons or selectables.
2023-01-13 10:02:29 +01:00
7b64d78b5b CMakeLists: bump version number. 2022-12-13 22:53:47 +01:00
59aa006611 Profile: actually fix the fix. 2022-12-13 22:53:36 +01:00

View file

@ -279,7 +279,7 @@ Profile::setMaterial(MaterialID id, std::int32_t amount) {
if(it == mats_prop->items.end()) { if(it == mats_prop->items.end()) {
res_prop = new ResourceItemValue; res_prop = new ResourceItemValue;
if(mats_prop->items.isEmpty()) { if(mats_prop->items.isEmpty()) {
res_prop->name.emplace("ResourceMaterial"); res_prop->name.emplace(container);
} }
res_prop->id = id; res_prop->id = id;
ResourceItemValue::ptr prop{res_prop}; ResourceItemValue::ptr prop{res_prop};