From 90d2cdd024e35a4f9f377de2484e15f212a4c48c Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Wed, 24 Dec 2025 04:28:14 +0100 Subject: [PATCH] DEVTOOLS access to AnimationMixer + Loaders (#32616) --- src/animation/AnimationMixer.js | 6 ++++++ src/loaders/Loader.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/animation/AnimationMixer.js b/src/animation/AnimationMixer.js index 83eb749eaf8516..60272b79c8c000 100644 --- a/src/animation/AnimationMixer.js +++ b/src/animation/AnimationMixer.js @@ -48,6 +48,12 @@ class AnimationMixer extends EventDispatcher { */ this.timeScale = 1.0; + if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { + + __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) ); + + } + } _bindAction( action, prototypeAction ) { diff --git a/src/loaders/Loader.js b/src/loaders/Loader.js index 684347c893d5e3..be42e1a8e23f32 100644 --- a/src/loaders/Loader.js +++ b/src/loaders/Loader.js @@ -61,6 +61,12 @@ class Loader { */ this.requestHeader = {}; + if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { + + __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) ); + + } + } /**