add mesh.object -- add dependencies to loaders
This commit is contained in:
parent
b5ad39ee08
commit
77eae604c7
10 changed files with 63 additions and 19 deletions
|
|
@ -84,7 +84,9 @@ broker.subscribe('space_init', data => {
|
|||
|
||||
// add object loader
|
||||
broker.subscribe('space_load', data => {
|
||||
console.log({space_load: data});
|
||||
for (let od of data) {
|
||||
new mesh.object(od);
|
||||
}
|
||||
});
|
||||
|
||||
// remove version cache bust from url
|
||||
|
|
@ -104,6 +106,8 @@ gapp.finalize("main.mesh", [
|
|||
"moto.client", // dep: moto.client
|
||||
"moto.broker", // dep: moto.broker
|
||||
"moto.space", // dep: moto.space
|
||||
"mesh.object", // dep: mesh.object
|
||||
"load.file", // dep: load.file
|
||||
]);
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue