Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Scala code for Babylon.js v6.35+ #665

Open
jesnor opened this issue Nov 1, 2024 · 0 comments
Open

Incorrect Scala code for Babylon.js v6.35+ #665

jesnor opened this issue Nov 1, 2024 · 0 comments

Comments

@jesnor
Copy link

jesnor commented Nov 1, 2024

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 jesnor changed the title Incorrect Scala code for Babylon.js 6.35+ Incorrect Scala code for Babylon.js v6.35+ Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant