o think is not that

This commit is contained in:
math-pixel
2026-06-01 22:26:58 +02:00
parent cd0afcda8c
commit d975aac018
6 changed files with 117 additions and 19 deletions
@@ -219,7 +219,11 @@ export function RepairCaseModel({
parsedScale[2] * pop.current.scale,
);
if (placeholderNodes.current.length > 0) {
// Placeholders are only consumed when the case is open (repairing). While
// floating (inspected/scanning) the case bobs every frame, so emitting here
// would fire a React setState on every frame, re-rendering the whole
// RepairGame subtree continuously. Only compute when not floating.
if (!floating && placeholderNodes.current.length > 0) {
const placeholders: RepairCasePlaceholder[] = [];
placeholderNodes.current.forEach((child) => {
child.getWorldPosition(placeholderPosition.current);