From 4d5876d4b644338a63763c62f7d950d24aa206c1 Mon Sep 17 00:00:00 2001 From: siimav Date: Mon, 9 Sep 2024 00:54:56 +0300 Subject: [PATCH] Use drag cube cache --- Source/Plugin/ModuleRORCS.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Plugin/ModuleRORCS.cs b/Source/Plugin/ModuleRORCS.cs index ddd795c5..93b14e1a 100644 --- a/Source/Plugin/ModuleRORCS.cs +++ b/Source/Plugin/ModuleRORCS.cs @@ -328,7 +328,9 @@ private void UpdateAttachNodes(bool userInput) } } - private void UpdateDragCubes() => ROLModInterop.OnPartGeometryUpdate(part, true); + private void UpdateDragCubes() => ROLModInterop.OnPartGeometryUpdate(part, ShapeKey); + + private string ShapeKey => $"RORCS|{currentType}|{currentRCSModel}|{currentBase}|{currentLayout}|{currentScale}"; public void OnModelSelectionChanged(BaseField f, object o) {