Răsfoiți Sursa

TSL Transpiler: Fix addition of `Before` for non `++` or `--` (#31579)

sunag 6 luni în urmă
părinte
comite
eda8be6f44
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      examples/jsm/transpiler/TSLEncoder.js

+ 1 - 1
examples/jsm/transpiler/TSLEncoder.js

@@ -340,7 +340,7 @@ class TSLEncoder {
 
 			if ( node.hasAssignment ) {
 
-				if ( node.after === false ) {
+				if ( node.after === false && ( node.type === '++' || node.type === '--' ) ) {
 
 					type += 'Before';
 

粤ICP备19079148号