feat(studio.resource): 增加了材料的硬度上下限

Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
李东云
2022-07-27 17:16:01 +08:00
parent ae6a4e5e0e
commit 7697af5232

View File

@@ -40,6 +40,11 @@ class Material extends JsonResource
'k' => $this->pivot->k,
'a' => $this->pivot->a,
],
// 硬度上下限
'hardnessRange' => [
'min' => $this->pivot->min_hardness,
'max' => $this->pivot->max_hardness,
],
];
}
}