Files
test2/source/blender/blenkernel/intern/subdiv_topology.cc
Hans Goudey ba03407e33 Cleanup: Subdiv: Remove unnecessary C-API header
Use the topology refiner header directly.
Followup for 5e46e3d28a.

Pull Request: https://projects.blender.org/blender/blender/pulls/129941
2024-11-07 10:36:53 +01:00

33 lines
656 B
C++

/* SPDX-FileCopyrightText: 2019 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup bke
*/
#include "BLI_utildefines.h"
#include "BKE_subdiv_topology.hh"
#include "BKE_subdiv.hh"
#ifdef WITH_OPENSUBDIV
# include "opensubdiv_topology_refiner.hh"
#endif
namespace blender::bke::subdiv {
int topology_num_fvar_layers_get(const Subdiv *subdiv)
{
#ifdef WITH_OPENSUBDIV
const blender::opensubdiv::TopologyRefinerImpl *topology_refiner = subdiv->topology_refiner;
return topology_refiner->base_level().GetNumFVarChannels();
#else
UNUSED_VARS(subdiv);
return 0;
#endif
}
} // namespace blender::bke::subdiv