diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-05-19 11:26:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-05-27 13:07:16 +0300 |
commit | 6fc9d106ad3db60f3e297f118214e9915b1f0379 (patch) | |
tree | 0ff7260a447bbf4a5ef96484c7d13959d0a9062a /intern/opensubdiv/internal/topology | |
parent | 0d089ce88121f4bbdd93e9fd899d69ac7fba7a2a (diff) |
OpenSubdiv: Completely disable topology verification
Previously it was enabled for debug builds, now it is to be enabled
explicitly.
The reason for this is to reduce overhead when debugging other areas
which might involve subdivision surface. When conversion is to be
debugged set this manually in the code.
Diffstat (limited to 'intern/opensubdiv/internal/topology')
-rw-r--r-- | intern/opensubdiv/internal/topology/topology_refiner_capi.cc | 1 | ||||
-rw-r--r-- | intern/opensubdiv/internal/topology/topology_refiner_factory.cc | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/intern/opensubdiv/internal/topology/topology_refiner_capi.cc b/intern/opensubdiv/internal/topology/topology_refiner_capi.cc index 36a6ed16b16..0363c874344 100644 --- a/intern/opensubdiv/internal/topology/topology_refiner_capi.cc +++ b/intern/opensubdiv/internal/topology/topology_refiner_capi.cc @@ -21,7 +21,6 @@ #include "MEM_guardedalloc.h" #include "internal/base/edge_map.h" #include "internal/opensubdiv_converter_internal.h" -#include "internal/opensubdiv_internal.h" #include "internal/opensubdiv_util.h" #include "internal/topology/topology_refiner_impl.h" diff --git a/intern/opensubdiv/internal/topology/topology_refiner_factory.cc b/intern/opensubdiv/internal/topology/topology_refiner_factory.cc index 2e86a39fb51..05e4759c983 100644 --- a/intern/opensubdiv/internal/topology/topology_refiner_factory.cc +++ b/intern/opensubdiv/internal/topology/topology_refiner_factory.cc @@ -28,7 +28,6 @@ #include <opensubdiv/far/topologyRefinerFactory.h> #include "internal/opensubdiv_converter_internal.h" -#include "internal/opensubdiv_internal.h" #include "internal/opensubdiv_util.h" #include "opensubdiv_converter_capi.h" @@ -293,9 +292,11 @@ TopologyRefinerFactoryType::Options getTopologyRefinerOptions(OpenSubdiv_Convert const SchemeType scheme_type = getSchemeTypeFromCAPI(converter->getSchemeType(converter)); TopologyRefinerFactoryType::Options topology_options(scheme_type, sdc_options); -#ifdef OPENSUBDIV_VALIDATE_TOPOLOGY - topology_options.validateFullTopology = true; -#endif + + // NOTE: When debugging topology conversion related functionality it is helpful to set this + // to truth. In all other cases leave it at false. so debugging of other areas is not affected + // by performance penalty happening in this module. + topology_options.validateFullTopology = false; return topology_options; } |