Skip to content

Fix module code to properly split shapes#231

Open
SummerSigh wants to merge 1 commit intomainfrom
module-division-fix
Open

Fix module code to properly split shapes#231
SummerSigh wants to merge 1 commit intomainfrom
module-division-fix

Conversation

@SummerSigh
Copy link
Member

The baballonia module had a single incorrect Boolean expression in line 33 that cascaded to a bunch of bandaid fixes being applied to make other shapes work within the module. when using systems with more advanced tracking (like Basis), it was clear that only the LowerLeft of that shape was being driven. Now that's been fixed so all split shapes drive at their proper values without the need for the hacky multiplication fixes we had in the past.

TwoKeyDictionary.Add rejected entries with duplicate Key2 values,
so only the first sub-shape per OSC address was registered (e.g.
LipPuckerLowerLeft but not UpperLeft/UpperRight/LowerRight).

Remove the ContainsKey2 guard so all sub-shapes are registered,
and remove the compensating *4/*2 multipliers that are no longer
needed now that every sub-shape receives the true value.
@SummerSigh SummerSigh requested a review from dfgHiatus February 27, 2026 20:22
@dfgHiatus dfgHiatus self-assigned this Feb 27, 2026
@dfgHiatus dfgHiatus added the bug Something isn't working label Feb 27, 2026
@RamesTheGeneric
Copy link
Contributor

Tested and works fine on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants