Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_mesh_types.h
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2001-2002 NaN Holding BV. All rights reserved. */ | * Copyright 2001-2002 NaN Holding BV. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup DNA | * \ingroup DNA | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "DNA_ID.h" | #include "DNA_ID.h" | ||||
| #include "DNA_customdata_types.h" | #include "DNA_customdata_types.h" | ||||
| #include "DNA_defs.h" | #include "DNA_defs.h" | ||||
| #include "DNA_session_uuid_types.h" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct AnimData; | struct AnimData; | ||||
| struct BVHCache; | struct BVHCache; | ||||
| struct Ipo; | struct Ipo; | ||||
| ▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | typedef struct Mesh_Runtime { | ||||
| /** #eMeshWrapperType and others. */ | /** #eMeshWrapperType and others. */ | ||||
| char wrapper_type; | char wrapper_type; | ||||
| /** | /** | ||||
| * A type mask from wrapper_type, | * A type mask from wrapper_type, | ||||
| * in case there are differences in finalizing logic between types. | * in case there are differences in finalizing logic between types. | ||||
| */ | */ | ||||
| char wrapper_type_finalize; | char wrapper_type_finalize; | ||||
| int subsurf_resolution; | |||||
| /** | /** | ||||
| * Settings for lazily evaluating the subdivision on the CPU if needed. These are | * Settings for lazily evaluating the subdivision on the CPU if needed. These are | ||||
| * set in the modifier when GPU subdivision can be performed. | * set in the modifier when GPU subdivision can be performed. | ||||
| */ | */ | ||||
| SessionUUID subsurf_session_uuid; | |||||
| int subsurf_resolution; | |||||
| char subsurf_apply_render; | char subsurf_apply_render; | ||||
| char subsurf_use_optimal_display; | char subsurf_use_optimal_display; | ||||
| /** | /** | ||||
| * Caches for lazily computed vertex and polygon normals. These are stored here rather than in | * Caches for lazily computed vertex and polygon normals. These are stored here rather than in | ||||
| * #CustomData because they can be calculated on a const mesh, and adding custom data layers on a | * #CustomData because they can be calculated on a const mesh, and adding custom data layers on a | ||||
| * const mesh is not thread-safe. | * const mesh is not thread-safe. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 316 Lines • Show Last 20 Lines | |||||