Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pr comment
Browse files Browse the repository at this point in the history
Maksims committed Dec 19, 2024
1 parent 21ff4c4 commit e81a610
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/framework/components/render/component.js
Original file line number Diff line number Diff line change
@@ -719,7 +719,9 @@ class RenderComponent extends Component {
this._rootBone = value;
} else if (isString) {
this._rootBone = this.system.app.getEntityFromIndex(value) || null;
Debug.assert(this._rootBone, 'Failed to find rootBone Entity by GUID');
if (!this._rootBone) {
Debug.warn('Failed to find rootBone Entity by GUID');
}
} else {
this._rootBone = null;
}

0 comments on commit e81a610

Please sign in to comment.