Commit e5ac8324 authored by Marlin Frickenschmidt's avatar Marlin Frickenschmidt

Fixed bug that rotating an object didn't update the normals, leading to wrong lighting.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10728 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 926bb04d
......@@ -439,11 +439,14 @@ void MovePlugin::moveObject(ACG::Matrix4x4d mat, int _id) {
if ( object->dataType() == DATA_TRIANGLE_MESH ) {
transformMesh(mat , *PluginFunctions::triMesh(object) );
PluginFunctions::triMesh(object)->update_normals();
} else if ( object->dataType() == DATA_POLY_MESH ) {
transformMesh(mat , *PluginFunctions::polyMesh(object) );
PluginFunctions::polyMesh(object)->update_normals();
#ifdef ENABLE_TSPLINEMESH_SUPPORT
} else if ( object->dataType() == DATA_TSPLINE_MESH ) {
transformMesh(mat , *PluginFunctions::tsplineMesh(object) );
PluginFunctions::tsplineMesh(object)->update_normals();
#endif
#ifdef ENABLE_POLYLINE_SUPPORT
} else if ( object->dataType() == DATA_POLY_LINE ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment