Further improve normal corrector in spiro expansion

This commit is contained in:
be5invis 2021-04-18 19:46:05 -07:00
parent bb863cd4ff
commit 040b5fd487
7 changed files with 58 additions and 43 deletions

View file

@ -87,8 +87,11 @@ function getBlendArg(blendArgs, style) {
function hiveBlend(hive, value) {
if (!hive || !hive.blend || value == null) return hive;
const generatedHive = {};
const block = hive.blend;
delete hive.blend;
const generatedHive = { ...hive };
let keys = new Set();
for (const grade in block) {
if (!isFinite(parseFloat(grade))) continue;