Gabriel95 / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

PhongMaterial.specularPower assignment typo #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It's currently not possible to assign a value as the specularPower of a 
PhongMaterial:

new PhongMaterial {
  diffuseColor = Color.RED
  specularColor = Color.WHITE
  specularPower = 5.0
}

The latter statement gives the error: "value specularPower_= is not a member of 
scalafx.scene.paint.PhongMaterial".

In the source, the property assignment function has been defined with an extra 
colon, as follows:

  def specularPower_=:(v:Double) {
    specularPower() = v
  }

Original issue reported on code.google.com by mike@hindsight-consulting.com on 3 Aug 2013 at 7:50

GoogleCodeExporter commented 8 years ago
I've fixed this trivial bug on my own clone of the SFX-8 branch. How should I 
push it back to the official branch?

Original comment by mike@hindsight-consulting.com on 3 Aug 2013 at 8:07

GoogleCodeExporter commented 8 years ago
This issue was closed by revision a7549e5e86e5.

Original comment by jpsacha on 4 Aug 2013 at 3:10

GoogleCodeExporter commented 8 years ago

Original comment by jpsacha on 4 Aug 2013 at 3:26