File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2518,7 +2518,7 @@ class RenderWebGL extends EventEmitter {
25182518 const drawable = this . _allDrawables [ drawableID ] ;
25192519
25202520 const uniforms = { } ;
2521- if ( ! this . renderOffscreen ) {
2521+ if ( ! this . renderOffscreen && drawable . uniformApplied ) {
25222522 if ( drawMode === ShaderManager . DRAW_MODE . default && drawable . skin ) {
25232523 // If rotationCenterDirty or skinScaleDirty is dirty, then set _calculateTransform first
25242524 // because _rotationAdjusted and _skinScale needs to call _calculateTransform before using
@@ -2584,7 +2584,8 @@ class RenderWebGL extends EventEmitter {
25842584 } ) ;
25852585 }
25862586
2587- if ( this . renderOffscreen ) {
2587+ if ( this . renderOffscreen && ! drawable . uniformApplied ) {
2588+ drawable . uniformApplied = true ;
25882589 Object . assign (
25892590 uniforms ,
25902591 drawable . skin . getUniforms ( drawableScale ) ,
You can’t perform that action at this time.
0 commit comments