Converter icon indicating copy to clipboard operation
Converter copied to clipboard

Incorrect Scala code for Babylon.js v6.35+

Open jesnor opened this issue 1 year ago • 0 comments

When I try to use Babylon.js v6.35.0 or higher the generated Scala code fails to compile with this error:

[error] ZincCompiler.scala:230 msg.get() [Error] C:/code/scala/js/testjs/target/streams/_global/stImport/_global/streams/sources/b/babylonjs/src/main/scala/typings/babylonjs/BABYLON/PlaneRotationGizmo.scala:93:6: Double definition:
[error] var rotationColor_=(x$1: typings.babylonjs.BABYLON.Color3): Unit in trait PlaneRotationGizmo at line 91 and                                                        
[error] def rotationColor_=(color: typings.babylonjs.BABYLON.Color3): Unit in trait PlaneRotationGizmo at line 93                                                          
[error]  [project => testjs, ms => 59004]                                                                                                                                  
[error] ZincCompiler.scala:230 msg.get() [Error] C:/code/scala/js/testjs/target/streams/_global/stImport/_global/streams/sources/b/babylonjs/src/main/scala/typings/babylonjs/gizmosPlaneRotationGizmoMod.scala:134:8: Double definition:
[error] var rotationColor_=(x$1: typings.babylonjs.mathsMathDotcolorMod.Color3): Unit in class PlaneRotationGizmo at line 132 and                                          
[error] def rotationColor_=(color: typings.babylonjs.mathsMathDotcolorMod.Color3): Unit in class PlaneRotationGizmo at line 134         

This is the generated Scala code:

  /** Color used to render the drag angle sector when gizmo is rotated with mouse */
  var rotationColor: Color3 = js.native
  /** Color used to render the drag angle sector when gizmo is rotated with mouse */
  def rotationColor_=(color: Color3): Unit = js.native

jesnor avatar Nov 01 '24 12:11 jesnor