buildIdTOObject slowly
parent
8e5c3d1d04
commit
5398cebcbe
|
@ -58,13 +58,13 @@ GameLib.Component.prototype.getDependencies = function() {
|
||||||
|
|
||||||
for (var property in this.linkedObjects) {
|
for (var property in this.linkedObjects) {
|
||||||
|
|
||||||
// if (
|
if (
|
||||||
// property === 'parentMesh' ||
|
property === 'parentMesh' ||
|
||||||
// property === 'parentScene' ||
|
property === 'parentScene' ||
|
||||||
// property === 'parentEntity'
|
property === 'parentEntity'
|
||||||
// ) {
|
) {
|
||||||
// continue;
|
continue;
|
||||||
// }
|
}
|
||||||
|
|
||||||
//TODO array linked objects
|
//TODO array linked objects
|
||||||
if (this.linkedObjects.hasOwnProperty(property)){
|
if (this.linkedObjects.hasOwnProperty(property)){
|
||||||
|
|
|
@ -42,6 +42,8 @@ GameLib.D3.Scene = function (
|
||||||
|
|
||||||
if (apiMesh instanceof GameLib.D3.API.Mesh) {
|
if (apiMesh instanceof GameLib.D3.API.Mesh) {
|
||||||
|
|
||||||
|
apiMesh.parentScene = this;
|
||||||
|
|
||||||
return new GameLib.D3.Mesh(
|
return new GameLib.D3.Mesh(
|
||||||
this.graphics,
|
this.graphics,
|
||||||
apiMesh
|
apiMesh
|
||||||
|
|
|
@ -878,7 +878,7 @@ GameLib.GUI.prototype.buildSelectControl = function(folder, object, property, en
|
||||||
/**
|
/**
|
||||||
* Properties changed - rebuild the object list in the parent
|
* Properties changed - rebuild the object list in the parent
|
||||||
*/
|
*/
|
||||||
console.log('parentObject.buildIdToObject();');
|
parentObject.buildIdToObject();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Properties changed - rebuild GUI
|
* Properties changed - rebuild GUI
|
||||||
|
|
Loading…
Reference in New Issue