Compare commits
9 commits
2ec415f2b5
...
630cc1fbbc
Author | SHA1 | Date | |
---|---|---|---|
630cc1fbbc | |||
b219589af3 | |||
640a7d3cd0 | |||
a17f87cfc9 | |||
847e07e88d | |||
953a2a9c8b | |||
aa1e5daf94 | |||
8668c59858 | |||
da6aea3661 |
1 changed files with 0 additions and 4 deletions
|
@ -264,7 +264,6 @@ Profile::setMaterial(MaterialID id, std::int32_t amount) {
|
||||||
if(!mats_prop) {
|
if(!mats_prop) {
|
||||||
mats_prop = new ArrayProperty;
|
mats_prop = new ArrayProperty;
|
||||||
mats_prop->name.emplace(container);
|
mats_prop->name.emplace(container);
|
||||||
mats_prop->itemType = "StructProperty";
|
|
||||||
_profile.appendProperty(ArrayProperty::ptr{mats_prop});
|
_profile.appendProperty(ArrayProperty::ptr{mats_prop});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,9 +277,6 @@ Profile::setMaterial(MaterialID id, std::int32_t amount) {
|
||||||
ResourceItemValue* res_prop;
|
ResourceItemValue* res_prop;
|
||||||
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()) {
|
|
||||||
res_prop->name.emplace("ResourceMaterial");
|
|
||||||
}
|
|
||||||
res_prop->id = id;
|
res_prop->id = id;
|
||||||
ResourceItemValue::ptr prop{res_prop};
|
ResourceItemValue::ptr prop{res_prop};
|
||||||
arrayAppend(mats_prop->items, std::move(prop));
|
arrayAppend(mats_prop->items, std::move(prop));
|
||||||
|
|
Loading…
Reference in a new issue