Cleanup: format
This commit is contained in:
@@ -92,7 +92,8 @@ std::string cache_or_get_image_file(Main *bmain, Scene *scene, Image *image, Ima
|
||||
snprintf(subfolder, sizeof(subfolder), "unpack_%p", image);
|
||||
LISTBASE_FOREACH (ImagePackedFile *, ipf, &image->packedfiles) {
|
||||
char path[FILE_MAX];
|
||||
BLI_path_join(path, sizeof(path), dir_path.c_str(), subfolder, BLI_path_basename(ipf->filepath));
|
||||
BLI_path_join(
|
||||
path, sizeof(path), dir_path.c_str(), subfolder, BLI_path_basename(ipf->filepath));
|
||||
cached_path = BKE_packedfile_unpack_to_file(nullptr,
|
||||
BKE_main_blendfile_path(bmain),
|
||||
dir_path.c_str(),
|
||||
|
||||
@@ -371,9 +371,12 @@ class USDImportTest(AbstractUSDTest):
|
||||
# Verify expected deform groups.
|
||||
# There are 4 points in each group.
|
||||
for i in range(4):
|
||||
self.assertAlmostEqual(mesh_obj.vertex_groups['Hand'].weight(i), 1.0, 2, "Unexpected weight for Hand deform vert")
|
||||
self.assertAlmostEqual(mesh_obj.vertex_groups['Shoulder'].weight(4 + i), 1.0, 2, "Unexpected weight for Shoulder deform vert")
|
||||
self.assertAlmostEqual(mesh_obj.vertex_groups['Elbow'].weight(8 + i), 1.0, 2, "Unexpected weight for Elbow deform vert")
|
||||
self.assertAlmostEqual(mesh_obj.vertex_groups['Hand'].weight(
|
||||
i), 1.0, 2, "Unexpected weight for Hand deform vert")
|
||||
self.assertAlmostEqual(mesh_obj.vertex_groups['Shoulder'].weight(
|
||||
4 + i), 1.0, 2, "Unexpected weight for Shoulder deform vert")
|
||||
self.assertAlmostEqual(mesh_obj.vertex_groups['Elbow'].weight(
|
||||
8 + i), 1.0, 2, "Unexpected weight for Elbow deform vert")
|
||||
|
||||
action = bpy.data.actions['SkelAction']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user