parent update

beta.r3js.org
-=yb4f310 2017-10-27 09:39:46 +02:00
parent 15914c44db
commit 8fca0b7dfa
1 changed files with 2 additions and 10 deletions

View File

@ -91,11 +91,7 @@ GameLib.Component.prototype.getDependencies = function() {
if (
this.linkedObjects.hasOwnProperty(property) &&
property !== 'parentMesh' &&
property !== 'parentScene' &&
property !== 'parentWorld' &&
property !== 'parentEntity' &&
property !== 'parentEntityManager' &&
property.indexOf('parent') !== 0 &&
this.hasOwnProperty(property)
){
if (typeof this[property] === 'string') {
@ -304,11 +300,7 @@ GameLib.Component.prototype.buildIdToObject = function() {
this.linkedObjects.hasOwnProperty(property) &&
this.hasOwnProperty(property) &&
this[property] &&
property !== 'parentEntity' &&
property !== 'parentScene' &&
property !== 'parentMesh' &&
property !== 'parentWorld' &&
property !== 'parentEntityManager' &&
property.indexOf('parent') !== 0 &&
loaded
) {