Skip to content

Commit 81c093a

Browse files
authored
Merge pull request #2429 from SCIInstitute/fix-2428-groom-fixed-alignment
Fix #2428 - Groom: Fixed domains should not clear transforms on grooming
2 parents da5a816 + e5b545c commit 81c093a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Libs/Groom/Groom.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ bool Groom::run() {
4444
throw std::invalid_argument("No subjects to groom");
4545
}
4646

47-
// clear alignment transforms
47+
// clear alignment transforms (except fixed subjects)
4848
for (auto& subject : subjects) {
49-
subject->set_groomed_transforms({});
49+
if (!subject->is_fixed()) {
50+
subject->set_groomed_transforms({});
51+
}
5052
}
5153

5254
total_ops_ = get_total_ops();

0 commit comments

Comments
 (0)