Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_converter.c')
-rw-r--r--source/blender/blenkernel/intern/subdiv_converter.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_converter.c b/source/blender/blenkernel/intern/subdiv_converter.c
index f6dabfa1c80..0ef32200bd3 100644
--- a/source/blender/blenkernel/intern/subdiv_converter.c
+++ b/source/blender/blenkernel/intern/subdiv_converter.c
@@ -27,25 +27,18 @@
#include "BLI_utildefines.h"
-#ifdef WITH_OPENSUBDIV
-# include "opensubdiv_converter_capi.h"
-#endif
+#include "opensubdiv_converter_capi.h"
void BKE_subdiv_converter_free(struct OpenSubdiv_Converter *converter)
{
-#ifdef WITH_OPENSUBDIV
if (converter->freeUserData) {
converter->freeUserData(converter);
}
-#else
- UNUSED_VARS(converter);
-#endif
}
/*OpenSubdiv_FVarLinearInterpolation*/ int
BKE_subdiv_converter_fvar_linear_from_settings(const SubdivSettings *settings)
{
-#ifdef WITH_OPENSUBDIV
switch (settings->fvar_linear_interpolation) {
case SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE:
return OSD_FVAR_LINEAR_INTERPOLATION_NONE;
@@ -58,8 +51,4 @@ BKE_subdiv_converter_fvar_linear_from_settings(const SubdivSettings *settings)
}
BLI_assert(!"Unknown fvar linear interpolation");
return OSD_FVAR_LINEAR_INTERPOLATION_NONE;
-#else
- UNUSED_VARS(settings);
- return 0;
-#endif
}