From 9b2dba2b1bf18af0f04b5af78beecf72f20e2d55 Mon Sep 17 00:00:00 2001 From: Cirilo Bernardo Date: Mon, 13 Jun 2016 12:50:42 -0400 Subject: [PATCH] 3D Viewer: fix swapped VRML material colors. * Fix a bug in the VRML2 parser which exchanged the blue and green components of the ambient lighting. --- plugins/3d/vrml/v2/vrml2_material.cpp | 2 +- plugins/3d/vrml/vrml.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/3d/vrml/v2/vrml2_material.cpp b/plugins/3d/vrml/v2/vrml2_material.cpp index 69e902d01a..c27f6f8542 100644 --- a/plugins/3d/vrml/v2/vrml2_material.cpp +++ b/plugins/3d/vrml/v2/vrml2_material.cpp @@ -405,7 +405,7 @@ SGNODE* WRL2MATERIAL::TranslateToSG( SGNODE* aParent ) float ambr = ambientIntensity * diffuseColor.x; float ambg = ambientIntensity * diffuseColor.y; float ambb = ambientIntensity * diffuseColor.z; - matNode.SetAmbient( ambr, ambb, ambg ); + matNode.SetAmbient( ambr, ambg, ambb ); matNode.SetShininess( shininess ); matNode.SetTransparency( transparency ); m_sgNode = matNode.GetRawPtr(); diff --git a/plugins/3d/vrml/vrml.cpp b/plugins/3d/vrml/vrml.cpp index ba6a9bda7a..75188a24dc 100644 --- a/plugins/3d/vrml/vrml.cpp +++ b/plugins/3d/vrml/vrml.cpp @@ -46,7 +46,7 @@ #define PLUGIN_VRML_MAJOR 1 #define PLUGIN_VRML_MINOR 3 #define PLUGIN_VRML_PATCH 2 -#define PLUGIN_VRML_REVNO 1 +#define PLUGIN_VRML_REVNO 2 const char* GetKicadPluginName( void )