mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
* Reduce duplication by using some test helpers * Ensure file level docstring is at beginning of file * Alphabetize imports Pull Request: https://projects.blender.org/blender/blender/pulls/157658
36 lines
868 B
Python
36 lines
868 B
Python
# SPDX-FileCopyrightText: 2026 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
"""
|
|
blender -b --factory-startup tests/files/sculpting/voxel_remesh_compare --python tests/python/sculpt_paint/voxel_remesh_compare_test.py
|
|
"""
|
|
|
|
__all__ = (
|
|
"main",
|
|
)
|
|
|
|
import os
|
|
import sys
|
|
|
|
import bpy
|
|
|
|
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
|
|
sys.path.append(os.path.join(BASE_DIR, ".."))
|
|
from modules.mesh_test import RunTest, SpecMeshTest, OperatorSpec
|
|
|
|
|
|
def main():
|
|
tests = [
|
|
SpecMeshTest("Color Interpolation", "testCube", "expectedCube",
|
|
[
|
|
OperatorSpec('SCULPT', 'ed.undo_push', {}),
|
|
OperatorSpec('SCULPT', 'object.voxel_remesh', {}),
|
|
]),
|
|
]
|
|
|
|
modifiers_test = RunTest(tests)
|
|
modifiers_test.main()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|