revert to original
parent
e87f06104e
commit
8d82286f29
|
@ -441,8 +441,7 @@ GameLib.System.Linking.prototype.registerDependencies = function(component) {
|
||||||
*/
|
*/
|
||||||
var processedComponent = GameLib.EntityManager.Instance.findComponentById(id);
|
var processedComponent = GameLib.EntityManager.Instance.findComponentById(id);
|
||||||
|
|
||||||
if (processedComponent) {
|
if (processedComponent && processedComponent.loaded) {
|
||||||
// if (processedComponent && processedComponent.loaded) {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Link the component
|
* Link the component
|
||||||
|
@ -494,8 +493,6 @@ GameLib.System.Linking.prototype.registerDependencies = function(component) {
|
||||||
if (component.loaded) {
|
if (component.loaded) {
|
||||||
try {
|
try {
|
||||||
component.createInstance();
|
component.createInstance();
|
||||||
//TODO: test below
|
|
||||||
//GameLib.Utils.PushUnique(this.resolved, component);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue