Merge pull request #1053 from barfowl/far_patch_is_adaptive

Fixed Far::PatchDescriptor::IsAdaptive() for legacy Gregory
This commit is contained in:
David G Yu 2019-02-05 13:17:28 -08:00 committed by GitHub
commit d468aca0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ public:
/// \brief Returns true if the type is an adaptive (non-linear) patch
static inline bool IsAdaptive(Type type) {
return GetNumControlVertices( type ) > 4;
return type > TRIANGLES;
}
/// \brief Returns true if the type is an adaptive patch