From e81a610897be9c22aad5ee8ff33ef5359515d934 Mon Sep 17 00:00:00 2001 From: mrmaxm Date: Thu, 19 Dec 2024 15:54:51 +0200 Subject: [PATCH] pr comment --- src/framework/components/render/component.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/framework/components/render/component.js b/src/framework/components/render/component.js index 0d5b34ee89a..53dc3adbf4d 100644 --- a/src/framework/components/render/component.js +++ b/src/framework/components/render/component.js @@ -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; }