Rick Posted January 9, 2010 Share Posted January 9, 2010 It doesn't seem to let me call :Free() on a material. In CreateObject(): object.mat = LoadMaterial("abstract::cobblestones.mat") In object:Free(): if object.mat ~= nil then object.mat:Free() end When I save the lua file I get "Index for object is not a valid field or method" Quote Link to comment Share on other sites More sharing options...
Paul Thomas Posted January 9, 2010 Share Posted January 9, 2010 I don't have Lua (2.3), but a lot of it seems to just be copying BMax, so wouldn't just: object.mat = nil Work as freeing it from memory? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.