Files
test2/source/blender/makesdna/DNA_volume_defaults.h
Brecht Van Lommel 7a395e2e7f Revert changes from main commits that were merged into blender-v4.1-release
The last good commit was f57e4c5b98.

After this one more fix was committed, this one is preserved as well:
67bd678887.
2024-03-18 15:04:12 +01:00

47 lines
944 B
C

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup DNA
*/
#pragma once
/* clang-format off */
/* -------------------------------------------------------------------- */
/** \name Volume Struct
* \{ */
#define _DNA_DEFAULT_VolumeDisplay \
{ \
.density = 1.0f, \
.wireframe_type = VOLUME_WIREFRAME_BOXES, \
.wireframe_detail = VOLUME_WIREFRAME_COARSE, \
.slice_depth = 0.5f, \
}
#define _DNA_DEFAULT_VolumeRender \
{ \
.precision = VOLUME_PRECISION_HALF, \
.space = VOLUME_SPACE_OBJECT, \
.step_size = 0.0f, \
.clipping = 0.001f, \
}
#define _DNA_DEFAULT_Volume \
{ \
.filepath[0] = '\0', \
.frame_start = 1, \
.frame_offset = 0, \
.frame_duration = 0, \
.display = _DNA_DEFAULT_VolumeDisplay, \
.render = _DNA_DEFAULT_VolumeRender, \
.velocity_scale = 1.0f, \
}
/** \} */
/* clang-format on */