bug: "addObject" function doesn't seem to do anything #102
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
Calling the
addObjectfunction with a directory path doesn't seem to do anything at all - custom object modules are not required.It looks like all this function does is add the provided path to
newObjectsinmain.lua, butnewObjectsis only ever visted whenmain.luais first evaluated (i.e. when the module isrequired, before theaddObjectfunction can even be called).To Reproduce
Steps to reproduce the behavior:
basalt.addObject("...")in a test programExpected behavior
The custom object modules would be imported and registered as object types in Basalt.
Checklist