Fix symmetry

This commit is contained in:
Andrew Cassidy 2021-01-05 16:23:15 -08:00
parent 03d2e66543
commit c33f5bacdd
2 changed files with 3 additions and 3 deletions

View File

@ -277,7 +277,7 @@ namespace ConformalDecals {
/// Called when a part is transformed in the editor
protected void OnPartTransformed(Part eventPart) {
if (this.part == eventPart) {
if (part == eventPart || part.symmetryCounterparts.Contains(eventPart)) {
UpdateProjection();
}
else if (_isAttached && projectMultiple) {
@ -291,7 +291,7 @@ namespace ConformalDecals {
/// Called when a part is attached in the editor
protected void OnPartAttached(Part eventPart) {
if (this.part == eventPart) {
if (part == eventPart || part.symmetryCounterparts.Contains(eventPart)) {
OnAttach();
}
else if (_isAttached && projectMultiple) {
@ -305,7 +305,7 @@ namespace ConformalDecals {
/// Called when a part is detached in the editor
protected void OnPartDetached(Part eventPart) {
if (this.part == eventPart) {
if (part == eventPart || part.symmetryCounterparts.Contains(eventPart)) {
OnDetach();
}
else if (_isAttached && projectMultiple) {