Page MenuHomePhabricator

Cannot restore float properties of surface from MITK scene
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Load surface (e.g. MITK-Data/ball.stl)
  • Set opacity to 0.5
  • Save project
  • Close project
  • Open Project

--> Surface is loaded, but with wrong opacity.

  • Open Logging view

--> There are errors when loading float properties: opacity and material coefficients.

Seems to be related to the locale setting: Float properties are serialized with commas in the MITK scene file.

Double-checked that on a Windows system with the same MITK version. This problem does not occur there.

Event Timeline

After setting my system locale to LC_NUMERIC=en_US.UTF-8 the problem does not occur anymore. Should we set the required locale within MITK in that case?

User goch has pushed new remote branch:

bug-19654-locales-and-properties

[377271]: Merge branch 'bug-19654-locales-and-properties'

Merged commits:

2016-04-08 16:29:39 Caspar Goch [349391]
Add localeSwitch to SceneIO and doule and float property (de)serialization