Fix labels for JavaFX

This commit is contained in:
Alexander Nozik 2021-07-15 19:45:43 +03:00
parent c1627b4504
commit a87692ae1f
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ class FXDemoApp : App(FXDemoGrid::class) {
stage.height = 600.0
view.showcase()
view.showcaseCSG()
}
}

View File

@ -65,7 +65,8 @@ class FX3DPlugin : AbstractPlugin() {
}
is SolidLabel -> Text(obj.text).apply {
font = Font.font(obj.fontFamily, obj.fontSize)
transforms.add(Rotate(180.0, Rotate.Y_AXIS))
transforms.add(Rotate(180.0, Rotate.Z_AXIS))
x = -layoutBounds.width / 2
y = layoutBounds.height / 2
}