forked from bartvdbraak/blender
OpenSubdiv: Fix wrong topology refiner cast
This commit is contained in:
parent
c17cb50ae2
commit
d0920fba16
@ -42,6 +42,7 @@
|
||||
#include <opensubdiv/osd/types.h>
|
||||
|
||||
#include "opensubdiv_intern.h"
|
||||
#include "opensubdiv_topology_refiner.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
@ -341,7 +342,7 @@ OpenSubdiv_EvaluatorDescr *openSubdiv_createEvaluatorDescr(
|
||||
int subsurf_level)
|
||||
{
|
||||
/* TODO(sergey): Look into re-using refiner with GLMesh. */
|
||||
TopologyRefiner *refiner = (TopologyRefiner *)topology_refiner;
|
||||
TopologyRefiner *refiner = topology_refiner->osd_refiner;
|
||||
if(refiner == NULL) {
|
||||
/* Happens on bad topology. */
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user