+ Reverted accidental edit of sg_node.cpp
+ Fixed invocation of SHAPE_POLY_SET::Simplify() to match changes in main
This commit is contained in:
parent
2c4b220f3c
commit
70be4e8f7f
|
@ -182,7 +182,23 @@ wxString S3D_FILENAME_RESOLVER::ResolvePath( const wxString& aFileName )
|
|||
|
||||
// first attempt to use the name as specified:
|
||||
wxString aResolvedName;
|
||||
wxString fname = aFileName;
|
||||
wxString fname;
|
||||
|
||||
// normalize paths with "${VARNAME}" to support legacy behavior
|
||||
if( aFileName.StartsWith( wxT( "${" ) ) )
|
||||
{
|
||||
wxFileName tmp( aFileName );
|
||||
|
||||
if( tmp.Normalize() )
|
||||
fname = tmp.GetFullPath();
|
||||
else
|
||||
fname = aFileName;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
fname = aFileName;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
// translate from KiCad's internal UNIX-like path to MSWin paths
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include "3d_cache/sg/sg_node.h"
|
||||
#include "plugins/3dapi/c3dmodel.h"
|
||||
|
||||
static const std::string node_names[V2_END + 1] = {
|
||||
static const std::string node_names[S3D::SGTYPE_END + 1] = {
|
||||
"TXFM",
|
||||
"APP",
|
||||
"COL",
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
*/
|
||||
|
||||
#include "c3d_render_ogl_legacy.h"
|
||||
|
||||
#include "ogl_legacy_utils.h"
|
||||
#include "geometry/shape_poly_set.h"
|
||||
|
||||
#include "../3d_render_raytracing/shapes2D/cpolygon2d.h"
|
||||
#include "../3d_render_raytracing/shapes2D/ctriangle2d.h"
|
||||
|
@ -98,7 +98,7 @@ void C3D_RENDER_OGL_LEGACY::reload()
|
|||
const SHAPE_POLY_SET boardPoly = m_settings.GetBoardPoly();
|
||||
SHAPE_POLY_SET boardPolyCopy = boardPoly;
|
||||
|
||||
boardPolyCopy.Simplify( true );
|
||||
boardPolyCopy.Simplify( SHAPE_POLY_SET::PM_FAST );
|
||||
|
||||
if( boardPolyCopy.OutlineCount() == 1 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue