Update mapping node

This commit is contained in:
luboslenco
2021-02-01 19:22:41 +01:00
parent 146f48958d
commit e757797813
3 changed files with 60 additions and 44 deletions
+8
View File
@@ -501,6 +501,14 @@ class ImportArm {
but.height = 4.5;
}
}
else if (node.type == "MAPPING") { // TODO: deprecated
if (node.inputs.length < 4) {
var latest: TNode = haxe.Json.parse(haxe.Json.stringify(arm.shader.NodesMaterial.getTNode("MAPPING")));
node.inputs = latest.inputs;
for (i in 0...node.buttons.length) node.inputs[i].default_value = node.buttons[i].default_value;
node.buttons = [];
}
}
}
}