mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-22 11:40:08 +00:00
Fixes far_tutorial_6 crash
This commit is contained in:
parent
7e3bd65432
commit
c4acb578f2
@ -42,6 +42,7 @@
|
||||
|
||||
#include <opensubdiv/far/topologyRefinerFactory.h>
|
||||
#include <opensubdiv/far/patchTablesFactory.h>
|
||||
#include <opensubdiv/far/endCapGregoryBasisPatchFactory.h>
|
||||
#include <opensubdiv/far/patchMap.h>
|
||||
|
||||
#include <cassert>
|
||||
@ -154,8 +155,10 @@ int main(int, char **) {
|
||||
|
||||
// Generate a set of Far::PatchTables that we will use to evaluate the
|
||||
// surface limit
|
||||
Far::EndCapGregoryBasisPatchFactory endcapFactory(*refiner);
|
||||
Far::PatchTables const * patchTables =
|
||||
Far::PatchTablesFactory::Create(*refiner);
|
||||
Far::PatchTablesFactoryT<Far::EndCapGregoryBasisPatchFactory>::Create(
|
||||
*refiner, Far::PatchTablesFactory::Options(), &endcapFactory);
|
||||
|
||||
// Create a Far::PatchMap to help locating patches in the table
|
||||
Far::PatchMap patchmap(*patchTables);
|
||||
|
Loading…
Reference in New Issue
Block a user