From 28c2c93e7152ecdad9f40501383f99c9aad0bd2c Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Fri, 14 Aug 2015 11:24:56 -0400 Subject: [PATCH] small change --- js/cam/assemblers/Component.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/cam/assemblers/Component.js b/js/cam/assemblers/Component.js index 9840473e..85b478bd 100644 --- a/js/cam/assemblers/Component.js +++ b/js/cam/assemblers/Component.js @@ -31,10 +31,8 @@ define(['underscore', 'cam', 'three'], function(_, cam, THREE){ console.warn("already added as a child"); return; } - if (child.addParent){//todo stock has no "addParent" or id - this.children.push(child); - child.addParent(this); - } + this.children.push(child); + child.addParent(this); this.object3D.add(child.getObject3D()); }; -- GitLab