File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2518,7 +2518,7 @@ class RenderWebGL extends EventEmitter {
2518
2518
const drawable = this . _allDrawables [ drawableID ] ;
2519
2519
2520
2520
const uniforms = { } ;
2521
- if ( ! this . renderOffscreen ) {
2521
+ if ( ! this . renderOffscreen && drawable . uniformApplied ) {
2522
2522
if ( drawMode === ShaderManager . DRAW_MODE . default && drawable . skin ) {
2523
2523
// If rotationCenterDirty or skinScaleDirty is dirty, then set _calculateTransform first
2524
2524
// because _rotationAdjusted and _skinScale needs to call _calculateTransform before using
@@ -2584,7 +2584,8 @@ class RenderWebGL extends EventEmitter {
2584
2584
} ) ;
2585
2585
}
2586
2586
2587
- if ( this . renderOffscreen ) {
2587
+ if ( this . renderOffscreen && ! drawable . uniformApplied ) {
2588
+ drawable . uniformApplied = true ;
2588
2589
Object . assign (
2589
2590
uniforms ,
2590
2591
drawable . skin . getUniforms ( drawableScale ) ,
You can’t perform that action at this time.
0 commit comments