Просмотр исходного кода

Potential fix for code scanning alert no. 3733: Assignment to constant

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
mrdoob 3 месяцев назад
Родитель
Сommit
b25836a0b4
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      examples/jsm/utils/JumpFloodSDFGenerator.js

+ 2 - 2
examples/jsm/utils/JumpFloodSDFGenerator.js

@@ -156,14 +156,14 @@ export class JumpFloodSDFGenerator {
 		matrix.compose( center, quat, scale );
 
 		// Create the render targets
-		const rt1 = new WebGLRenderTarget( dim, dim, {
+		let rt1 = new WebGLRenderTarget( dim, dim, {
 			format: RGBAFormat,
 			type: FloatType,
 			minFilter: LinearFilter,
 			magFilter: LinearFilter
 		} );
 
-		const rt2 = new WebGLRenderTarget( dim, dim, {
+		let rt2 = new WebGLRenderTarget( dim, dim, {
 			format: RGBAFormat,
 			type: FloatType,
 			minFilter: LinearFilter,

粤ICP备19079148号