Ticket #30: fix.patch

File fix.patch, 2.2 KB (added by ronsaldo, 2 years ago)

The bug fix patch

  • Libs/SceneGraph/BezierPatchNode.hpp

     
    121121            void operator = (const BezierPatchNodeT&);  ///< Use of the Assignment Operator is not allowed. 
    122122 
    123123            // This is the basic definition of a patch, read from and written to disk. 
    124             unsigned long     SizeX;            ///< Nr of columns. 
    125             unsigned long     SizeY;            ///< Nr of rows. 
     124            uint32_t     SizeX;            ///< Nr of columns. 
     125            uint32_t     SizeY;            ///< Nr of rows. 
    126126            ArrayT<Vector3fT> ControlPointsXYZ; ///< The xyz spatial coordinates of the control points (SizeX*SizeY many). 
    127127            ArrayT<Vector3fT> ControlPointsUV;  ///< The uv  texture coordinates of the control points (SizeX*SizeY many). 
    128128 
    129             int               SubdivsHorz;      ///< Number of subdivisions in horizontal direction, or auto-detection if -1. 
    130             int               SubdivsVert;      ///< Number of subdivisions in vertical   direction, or auto-detection if -1. 
     129            int32_t               SubdivsHorz;      ///< Number of subdivisions in horizontal direction, or auto-detection if -1. 
     130            int32_t               SubdivsVert;      ///< Number of subdivisions in vertical   direction, or auto-detection if -1. 
    131131            float             MaxError;         ///< Maximal error distance when subdividing bezier patches. Applies only if SubdivsHorz and SubdivsVert are -1. 
    132132 
    133133            MaterialT*        Material;         ///< The material assigned to this patch. 
  • Libs/SceneGraph/Node.hpp

     
    2424#ifndef _CF_SCENEGRAPH_NODE_INTERFACE_HPP_ 
    2525#define _CF_SCENEGRAPH_NODE_INTERFACE_HPP_ 
    2626 
     27#ifdef _WIN32 
     28#include "pstdint.h"            // Paul Hsieh's portable implementation of the stdint.h header. 
     29#else 
     30#include <stdint.h> 
     31#endif 
     32 
    2733#include "Math3D/BoundingBox.hpp" 
    2834#include "Math3D/Vector3.hpp" 
    2935#include "PatchMesh.hpp"