<p dir="auto">Hello.</p>
<p dir="auto">I'm trying to make my own camera with blackjack and hookers :)<br>
Doing it mostly by using the source of THREE.FirstPersonCamera and have faced a problem with updating the scene calling:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.supr.update.call( this );"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">supr</span><span class="pl-kos">.</span><span class="pl-c1">update</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span> <span class="pl-smi">this</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I can't call directly render()-function because it belongs to different scope. Certainly, i can bind handlers in main-part of the code, but i think, it would be better to avoid duplicates.<br>
Code here:<br>
<a href="http://93.186.103.193/" rel="nofollow">http://93.186.103.193/</a></p>
<p dir="auto">Sometimes I get this error.</p>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Load a gltf model with r124, Idk</li>
<li>Look into browser console</li>
<li>See error</li>
</ol>
<p dir="auto"><em><strong>Code</strong></em></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let manager = new THREE.LoadingManager, loader = new GLTFLoader( manager );
...
loader.load( config.path, function( result ) {
// nothing special here"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">manager</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">LoadingManager</span><span class="pl-kos">,</span> <span class="pl-s1">loader</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">GLTFLoader</span><span class="pl-kos">(</span> <span class="pl-s1">manager</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
...
<span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-c1">load</span><span class="pl-kos">(</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">path</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span> <span class="pl-s1">result</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// nothing special here</span></pre></div>
<p dir="auto"><em><strong>Live example</strong></em></p>
<p dir="auto">n/a</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The error never happens</p>
<p dir="auto"><strong>Screenshots</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/242577/103602373-2ee69f80-4f0c-11eb-9a4d-21621c0812f6.png"><img src="https://user-images.githubusercontent.com/242577/103602373-2ee69f80-4f0c-11eb-9a4d-21621c0812f6.png" alt="gltfloader stack" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/242577/103602413-40c84280-4f0c-11eb-8b11-447fb2c40caa.png"><img src="https://user-images.githubusercontent.com/242577/103602413-40c84280-4f0c-11eb-8b11-447fb2c40caa.png" alt="gltfloader code" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Platform:</strong></p>
<ul dir="auto">
<li>Device: Desktop</li>
<li>OS: Windows 10</li>
<li>Browser: Firefox</li>
<li>Three.js version: r124</li>
</ul>