Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.6.0 Beta
-
None
-
Windows 7 64bit, Intel HD 4600
Description
To repro, add the following bit to materials-cpp example somewhere after construction of diffuseMapMaterial:
QObject::connect(diffuseMapMaterial, &Qt3DRender::QDiffuseMapMaterial::shininessChanged, [](float foobar){qDebug() << "ShininessChanged" << foobar;}); diffuseMapMaterial->setShininess(5.0f); qDebug() << "shininess is:" << diffuseMapMaterial->shininess();
The shininessChanged signal reports the shininess has been changed to 5, but when shininess is queried from the material, it is zero:
ShininessChanged 5 shininess is: 0