[Bf-blender-cvs] [911a2b1d780] soc-2020-testing-frameworks: Post Review: Added minor improvements
calra123
noreply at git.blender.org
Sun Jul 26 21:27:53 CEST 2020
Commit: 911a2b1d7805f5faeeb14b95b441652ac8ee26ad
Author: calra123
Date: Mon Jul 20 12:43:21 2020 +0530
Branches: soc-2020-testing-frameworks
https://developer.blender.org/rB911a2b1d7805f5faeeb14b95b441652ac8ee26ad
Post Review: Added minor improvements
===================================================================
M tests/python/modules/mesh_test.py
===================================================================
diff --git a/tests/python/modules/mesh_test.py b/tests/python/modules/mesh_test.py
index df11cdca4df..f06b40df8e2 100644
--- a/tests/python/modules/mesh_test.py
+++ b/tests/python/modules/mesh_test.py
@@ -174,7 +174,9 @@ class MeshTest:
geometry after running the operations.
:param operations_stack: list - stack holding operations to perform on the test_object.
:param apply_modifier: bool - True if we want to apply the modifiers right after adding them to the object.
+ - True if we want to apply the modifier to a list of modifiers, after some operation.
This affects operations of type ModifierSpec and DeformModifierSpec.
+
:param test_name: str - unique test name identifier.
"""
if operations_stack is None:
@@ -305,6 +307,9 @@ class MeshTest:
elif test_object.type == 'MESH':
bpy.ops.object.modifier_apply(modifier=modifier_name)
+ else:
+ raise Exception("This object type is not yet supported!")
+
def _bake_current_simulation(self, obj, test_mod_type, test_mod_name, frame_end):
for scene in bpy.data.scenes:
for modifier in obj.modifiers:
More information about the Bf-blender-cvs
mailing list