Custom brush nodes

This commit is contained in:
luboslenco
2020-04-27 20:00:04 +02:00
parent 2a5c249e3c
commit 1e9223b2ef
+1 -1
View File
@@ -221,7 +221,7 @@ class Brush {
static function createClassInstance(className: String, args: Array<Dynamic>): Dynamic {
if (customNodes.get(className) != null) {
var node = new LogicNode(args[0]);
untyped node.get = customNodes.get(className);
untyped node.get = function(from: Int) { return customNodes.get(className)(node, from); }
return node;
}
var cname = Type.resolveClass(packageName + "." + className);