mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-04 22:20:14 +00:00
Fix for crash in new mesh/refiner code in OsdUtil. Need to
set HBR_ADAPTIVE before including hbr code. Also use an ifndef in far/meshFactory.h so that code can be included where someone else has already defined HBR_ADAPTIVE.
This commit is contained in:
parent
83d9315e64
commit
0925fe5a4b
@ -31,7 +31,9 @@
|
||||
// adaptively, some tag data is added to HbrFace, HbrVertex and HbrHalfedge.
|
||||
// While small, these tags incur some performance costs and are by default
|
||||
// disabled.
|
||||
#ifndef HBR_ADAPTIVE
|
||||
#define HBR_ADAPTIVE
|
||||
#endif
|
||||
|
||||
#include "../hbr/mesh.h"
|
||||
#include "../hbr/bilinear.h"
|
||||
|
@ -25,6 +25,11 @@
|
||||
#include "mesh.h"
|
||||
|
||||
#include <osd/vertex.h>
|
||||
|
||||
//XXX: required to set ADAPTIVE before hbr includes
|
||||
#ifndef HBR_ADAPTIVE
|
||||
#define HBR_ADAPTIVE
|
||||
#endif
|
||||
#include <hbr/catmark.h>
|
||||
|
||||
#include <sstream>
|
||||
|
@ -25,7 +25,12 @@
|
||||
#ifndef PX_OSD_UTIL_MESH_H
|
||||
#define PX_OSD_UTIL_MESH_H
|
||||
|
||||
//XXX: required to set ADAPTIVE before hbr includes
|
||||
#ifndef HBR_ADAPTIVE
|
||||
#define HBR_ADAPTIVE
|
||||
#endif
|
||||
#include <hbr/mesh.h>
|
||||
|
||||
#include <osd/vertex.h>
|
||||
|
||||
#include <string>
|
||||
|
Loading…
Reference in New Issue
Block a user