diff options
author | sanine-a <sanine.not@pm.me> | 2020-12-04 22:23:02 -0600 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-12-04 22:23:02 -0600 |
commit | c5fd6a98d29c8790c266da2c6b6db2ab173c3064 (patch) | |
tree | d1a6898ced92084420fbfb012873b4ead14be08e /demo/MeshInstance.lua | |
parent | e767e1ff9d81f8a76196caab91d9b6b4bbe0b30e (diff) |
add SignalManager.lua and revert to old Node.lua
Diffstat (limited to 'demo/MeshInstance.lua')
-rw-r--r-- | demo/MeshInstance.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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 |