Skip to content

Commit

Permalink
Fix plugins compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 15, 2016
1 parent b69be81 commit 77167bb
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 23 deletions.
26 changes: 13 additions & 13 deletions src/editors/ECore/Editor/EditMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,22 @@ class CSector;
#endif

class ECORE_API CEditableMesh{
friendclass MeshExpUtility;
friendclass CEditableObject;
friendclass CSectorItem;
friendclass CSector;
friendclass CPortalUtils;
friendclass SceneBuilder;
friendclass CExportSkeleton;
friendclass CExportObjectOGF;
friendclass TfrmEditLibrary;
friendclass CExporter;
friendclass CXRayObjectExport;
friendclass CXRaySkinExport;
friend class MeshExpUtility;
friend class CEditableObject;
friend class CSectorItem;
friend class CSector;
friend class CPortalUtils;
friend class SceneBuilder;
friend class CExportSkeleton;
friend class CExportObjectOGF;
friend class TfrmEditLibrary;
friend class CExporter;
friend class CXRayObjectExport;
friend class CXRaySkinExport;

shared_str m_Name;

CEditableObject*m_Parent;
CEditableObject *m_Parent;

void GenerateCFModel();
void GenerateRenderBuffers();
Expand Down
3 changes: 2 additions & 1 deletion src/editors/ECore/Editor/EditObjectImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

extern "C"
{
#include "utils/LWO/lwo2.h" };
#include "utils/LWO/lwo2.h"
};

#ifdef _EDITOR
#include "Layers/xrRender/ResourceManager.h"
Expand Down
6 changes: 3 additions & 3 deletions src/editors/ECore/Editor/ExportObjectOGFCalculateTB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void CObjectOGFCollectorPacked::CalculateTB()
NVMeshMender::DontWeightNormalsByFaceSize // weigh vertex normals by the triangle's size
))
{
Debug.fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
xrDebug::Fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
}
// Bind declarators
Expand Down Expand Up @@ -178,8 +178,8 @@ void CObjectOGFCollectorPacked::CalculateTB()
)
)
{
Debug.fatal ( DEBUG_INFO, "NVMeshMender failed " );
//Debug.fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
xrDebug::Fatal ( DEBUG_INFO, "NVMeshMender failed " );
//xrDebug::Fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
}

retrive_data_from_mender_otput( m_Verts, m_Faces, mender_in_out_verts, mender_in_out_indices, mender_mapping_out_to_in_vert );
Expand Down
6 changes: 3 additions & 3 deletions src/editors/ECore/Editor/ExportSkeletonCalculateTB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void CExportSkeleton::SSplit::CalculateTB()
NVMeshMender::DontWeightNormalsByFaceSize // weigh vertex normals by the triangle's size
))
{
Debug.fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
xrDebug::Fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
}
// verify
Expand Down Expand Up @@ -275,8 +275,8 @@ void CExportSkeleton::SSplit::CalculateTB ()
)
)
{
Debug.fatal ( DEBUG_INFO, "NVMeshMender failed " );
//Debug.fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
xrDebug::Fatal ( DEBUG_INFO, "NVMeshMender failed " );
//xrDebug::Fatal (DEBUG_INFO,"NVMeshMender failed (%s)",mender.GetLastError().c_str());
}

retrive_data_from_mender_otput( m_Verts, m_Faces, mender_in_out_verts, mender_in_out_indices, mender_mapping_out_to_in_vert );
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/Maya/Export/MayaExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ MStatus CXRayObjectExport::ExportPart(CEditableObject* O, MDagPath& mdagPath, MO
// out face material
int iTexture = texMap[meshPoly.index()];
if (iTexture<0)
Debug.fatal(DEBUG_INFO,"Can't find material for polygon: %d",meshPoly.index());
xrDebug::Fatal(DEBUG_INFO,"Can't find material for polygon: %d",meshPoly.index());
SXRShaderData& D= xr_data[iTexture];

int compIdx = meshPoly.index();
Expand Down Expand Up @@ -521,9 +521,9 @@ LPCSTR CXRayObjectExport::getMaterialName(MDagPath & mdagPath, int cid, int obje
lastMaterials = currentMaterials;

int mLength = mArray.length();
if (mLength==0) Debug.fatal(DEBUG_INFO,"Object '%s' has polygon '%d' without material.",0,cid);
if (mLength==0) xrDebug::Fatal(DEBUG_INFO,"Object '%s' has polygon '%d' without material.",0,cid);
if (mLength>1){
Debug.fatal(DEBUG_INFO,"Object '%s' has polygon '%d' with more than one material.",0,cid);
xrDebug::Fatal(DEBUG_INFO,"Object '%s' has polygon '%d' with more than one material.",0,cid);
}
}else{
xr_delete(currentMaterials);
Expand Down

0 comments on commit 77167bb

Please sign in to comment.