Merge branch 'master' into acloader_enums
This commit is contained in:
@@ -321,9 +321,10 @@ public:
|
||||
struct Face : public FaceWithSmoothingGroup {
|
||||
};
|
||||
|
||||
#if _MSC_VER > 1920
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4315)
|
||||
#endif
|
||||
#endif // _MSC_VER
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/** Helper structure representing a texture */
|
||||
@@ -412,6 +413,10 @@ struct Texture {
|
||||
|
||||
#include <assimp/Compiler/poppack1.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif // _MSC_VER
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/** Helper structure representing a 3ds material */
|
||||
struct Material {
|
||||
|
||||
@@ -386,7 +386,14 @@ void BlenderTessellatorP2T::ReferencePoints( std::vector< Blender::PointP2T >& p
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
inline PointP2T& BlenderTessellatorP2T::GetActualPointStructure( p2t::Point& point ) const
|
||||
{
|
||||
#if defined __clang__
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Winvalid-offsetof"
|
||||
#endif // __clang__
|
||||
unsigned int pointOffset = offsetof( PointP2T, point2D );
|
||||
#if defined __clang__
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
PointP2T& pointStruct = *reinterpret_cast< PointP2T* >( reinterpret_cast< char* >( &point ) - pointOffset );
|
||||
if ( pointStruct.magic != static_cast<int>( BLEND_TESS_MAGIC ) )
|
||||
{
|
||||
@@ -394,7 +401,6 @@ inline PointP2T& BlenderTessellatorP2T::GetActualPointStructure( p2t::Point& poi
|
||||
}
|
||||
return pointStruct;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void BlenderTessellatorP2T::MakeFacesFromTriangles( std::vector< p2t::Triangle* >& triangles ) const
|
||||
{
|
||||
|
||||
@@ -45,9 +45,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "AssetLib/Step/STEPFile.h"
|
||||
|
||||
#if _MSC_VER > 1920
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(push)
|
||||
# pragma warning( disable : 4512 )
|
||||
#endif // _WIN32
|
||||
#endif // _MSC_VER
|
||||
|
||||
namespace Assimp {
|
||||
namespace IFC {
|
||||
@@ -4372,4 +4373,8 @@ namespace STEP {
|
||||
} //! STEP
|
||||
} //! Assimp
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(pop)
|
||||
#endif // _MSC_VER
|
||||
|
||||
#endif // INCLUDED_IFC_READER_GEN_H
|
||||
|
||||
+655
-655
File diff suppressed because it is too large
Load Diff
@@ -68,9 +68,9 @@ namespace Assimp {
|
||||
namespace MDL {
|
||||
namespace HalfLife {
|
||||
|
||||
#if _MSC_VER > 1920
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(disable : 4706)
|
||||
#endif // _WIN32
|
||||
#endif // _MSC_VER
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
HL1MDLLoader::HL1MDLLoader(
|
||||
|
||||
@@ -54,10 +54,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <assimp/DefaultLogger.hpp>
|
||||
|
||||
#if _MSC_VER > 1920
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable : 4127 4456 4245 4512 )
|
||||
#endif // _WIN32
|
||||
#endif // _MSC_VER
|
||||
|
||||
//
|
||||
#if _MSC_VER > 1500 || (defined __GNUC___)
|
||||
@@ -130,8 +130,8 @@ namespace STEP {
|
||||
* coupled with a line number. */
|
||||
// -------------------------------------------------------------------------------
|
||||
struct SyntaxError : DeadlyImportError {
|
||||
enum {
|
||||
LINE_NOT_SPECIFIED = 0xffffffffffffffffLL
|
||||
enum : uint64_t {
|
||||
LINE_NOT_SPECIFIED = 0xfffffffffffffffLL
|
||||
};
|
||||
|
||||
SyntaxError(const std::string &s, uint64_t line = LINE_NOT_SPECIFIED);
|
||||
@@ -143,8 +143,8 @@ struct SyntaxError : DeadlyImportError {
|
||||
* It is typically coupled with both an entity id and a line number.*/
|
||||
// -------------------------------------------------------------------------------
|
||||
struct TypeError : DeadlyImportError {
|
||||
enum {
|
||||
ENTITY_NOT_SPECIFIED = 0xffffffffffffffffLL,
|
||||
enum : uint64_t {
|
||||
ENTITY_NOT_SPECIFIED = 0xffffffffffffffffUL,
|
||||
ENTITY_NOT_SPECIFIED_32 = 0x00000000ffffffff
|
||||
};
|
||||
|
||||
@@ -960,9 +960,9 @@ private:
|
||||
const EXPRESS::ConversionSchema *schema;
|
||||
};
|
||||
|
||||
#if _MSC_VER > 1920
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif // _WIN32
|
||||
#endif // _MSC_VER
|
||||
|
||||
} // namespace STEP
|
||||
|
||||
|
||||
+1
-1
@@ -1066,7 +1066,7 @@ endif()
|
||||
|
||||
ADD_DEFINITIONS( -DASSIMP_BUILD_DLL_EXPORT )
|
||||
|
||||
if ( MSVC )
|
||||
IF( MSVC OR "${CMAKE_CXX_SIMULATE_ID}" MATCHES "MSVC") # clang with MSVC ABI
|
||||
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
|
||||
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
|
||||
endif ()
|
||||
|
||||
@@ -74,9 +74,9 @@ Here we implement only the C++ interface (Assimp::Exporter).
|
||||
|
||||
namespace Assimp {
|
||||
|
||||
#if _MSC_VER > 1920
|
||||
#ifdef _MSC_VER
|
||||
# pragma warning( disable : 4800 )
|
||||
#endif // _WIN32
|
||||
#endif // _MSC_VER
|
||||
|
||||
|
||||
// PostStepRegistry.cpp
|
||||
|
||||
@@ -53,9 +53,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
using namespace Assimp;
|
||||
void mydummy() {}
|
||||
|
||||
#if _MSC_VER > 1920
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4709)
|
||||
#endif // _WIN32
|
||||
#endif // _MSC_VER
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
/** Subdivider stub class to implement the Catmull-Clarke subdivision algorithm. The
|
||||
* implementation is basing on recursive refinement. Directly evaluating the result is also
|
||||
|
||||
Reference in New Issue
Block a user