fix use of platform.world
This commit is contained in:
parent
930e591c44
commit
fd645737e2
6 changed files with 9 additions and 8 deletions
|
|
@ -26,7 +26,7 @@ self.kiri.loader.push(function() {
|
|||
CAM.animate_clear = function(api) {
|
||||
KIRI.client.animate_cleanup();
|
||||
SPACE = (API = api).const.SPACE;
|
||||
WORLD = SPACE.platform.world;
|
||||
WORLD = SPACE.world;
|
||||
$('layer-animate').innerHTML = '';
|
||||
$('layer-toolpos').innerHTML = '';
|
||||
Object.keys(meshes).forEach(id => deleteMesh(id));
|
||||
|
|
@ -35,7 +35,7 @@ self.kiri.loader.push(function() {
|
|||
if (KIRI.client)
|
||||
CAM.animate = function(api, delay) {
|
||||
SPACE = (API = api).const.SPACE;
|
||||
WORLD = SPACE.platform.world;
|
||||
WORLD = SPACE.world;
|
||||
KIRI.client.animate_setup(API.conf.get(), data => {
|
||||
checkMeshCommands(data);
|
||||
if (!(data && data.mesh_add)) {
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@
|
|||
api.event.on("code.loaded", (info) => {
|
||||
if (isCamMode && camStock) {
|
||||
isParsed = true;
|
||||
STACKS.getStack("parse", SPACE.platform.world).button("animate", animate);
|
||||
STACKS.getStack("parse", SPACE.world).button("animate", animate);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1206,7 +1206,7 @@
|
|||
tshadow = POLY.union(tshadow.slice().appendAll(data.tops).appendAll(shadowAt), 0.01, true);
|
||||
tslices.push(data.slice);
|
||||
data.slice.shadow = tshadow;
|
||||
if (true) {
|
||||
if (false) {
|
||||
const slice = data.slice;
|
||||
sliceAll.push(slice);
|
||||
slice.output()
|
||||
|
|
|
|||
|
|
@ -526,7 +526,7 @@
|
|||
));
|
||||
}
|
||||
|
||||
xpdebug = new KIRI.Stack(SPACE.platform.world, false);
|
||||
xpdebug = new KIRI.Stack(SPACE.world, false);
|
||||
xpdebug.addLayers(layers);
|
||||
xpdebug.setVisible(0,Infinity);
|
||||
xpdebug.show();
|
||||
|
|
|
|||
Loading…
Reference in a new issue