repo: janusweb action: commit revision: path_from: revision_from: 63ad1709584cdd6a99713077905cad083e867c4d: path_to: revision_to:
commit 63ad1709584cdd6a99713077905cad083e867c4d Author: epochDate: Sat Jun 1 10:48:32 2024 +0000 bail on falsy values diff --git a/scripts/elements/outliner.js b/scripts/elements/outliner.js
--- a/scripts/elements/outliner.js
+++ b/scripts/elements/outliner.js
@@ -68,6 +68,7 @@ elation.require(['janusweb.janusbase'], function() {
}
},
select(object) {
+ if(!object) return;
this.selected = object;
let objmeshes = [], skinnedmeshes = [];
object.traverseObjects(n => {
diff --git a/scripts/janusghost.js b/scripts/janusghost.js
--- a/scripts/janusghost.js
+++ b/scripts/janusghost.js
@@ -352,6 +352,7 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() {
}
this.cloneAnimations = function(animasset) {
let animations = animasset.animations;
+ if(!animations) return;
//console.log('clone all the animations', animations, animasset._model);
if (this.body) {
if (this.bone_head) {
-----END OF PAGE-----