From c5fd6a98d29c8790c266da2c6b6db2ab173c3064 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Fri, 4 Dec 2020 22:23:02 -0600 Subject: add SignalManager.lua and revert to old Node.lua --- demo/MeshInstance.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'demo/MeshInstance.lua') diff --git a/demo/MeshInstance.lua b/demo/MeshInstance.lua index eceec5d..3e879e1 100644 --- a/demo/MeshInstance.lua +++ b/demo/MeshInstance.lua @@ -1,7 +1,9 @@ +local Node = require('Node') + local MeshInstance = {} MeshInstance.prototype = {} -setmetatable(MeshInstance.prototype, { __index = honey.nodeMetatable.__index }) +setmetatable(MeshInstance.prototype, { __index = Node.prototype }) MeshInstance.prototype.draw = function(self, camera, shader) local shader = shader or self.shader @@ -18,7 +20,7 @@ MeshInstance.mt.__index = MeshInstance.prototype -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MeshInstance.new = function(parent, position, rotation, scale, mesh, shader) - local meshinstance = honey.node(parent, position, rotation, scale) + local meshinstance = Node.new(parent, position, rotation, scale) meshinstance.mesh = mesh meshinstance.shader = shader -- cgit v1.2.1