From c875a156dd75b51f7c32ad0a7aaec469cadfb887 Mon Sep 17 00:00:00 2001 From: HunterBarclay Date: Sun, 15 Sep 2024 22:58:55 -0600 Subject: [PATCH] chores: Clean up left over test code, remove debug statements. --- .../src/Parser/SynthesisParser/Materials.py | 4 ---- fission/src/mirabuf/MirabufInstance.ts | 2 -- fission/src/systems/physics/PhysicsSystem.ts | 12 ------------ 3 files changed, 18 deletions(-) diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py index 8218088bf..08c5e17bb 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py @@ -207,10 +207,6 @@ def getMaterialAppearance( properties = fusionAppearance.appearanceProperties - arr = [] - for x in range(properties.count): - arr.append(properties.item(x)) - roughnessProp = properties.itemById("surface_roughness") if roughnessProp: appearance.roughness = roughnessProp.value diff --git a/fission/src/mirabuf/MirabufInstance.ts b/fission/src/mirabuf/MirabufInstance.ts index 058684417..8edcbf29a 100644 --- a/fission/src/mirabuf/MirabufInstance.ts +++ b/fission/src/mirabuf/MirabufInstance.ts @@ -134,8 +134,6 @@ class MirabufInstance { const [hex, opacity] = A && B && G && R ? [(A << 24) | (R << 16) | (G << 8) | B, A / 255.0] : [0xe32b50, 1.0] - console.debug(`${appearance.metallic}, ${appearance.roughness}`) - const material = materialStyle === MaterialStyle.Regular ? new THREE.MeshStandardMaterial({ diff --git a/fission/src/systems/physics/PhysicsSystem.ts b/fission/src/systems/physics/PhysicsSystem.ts index 5bdc397b6..59cc1af14 100644 --- a/fission/src/systems/physics/PhysicsSystem.ts +++ b/fission/src/systems/physics/PhysicsSystem.ts @@ -714,18 +714,10 @@ class PhysicsSystem extends WorldSystem { JOLT.destroy(partMax) JOLT.destroy(transform) - // Set friction override once to any of the parts' values - console.debug( - `Physical Material: ${partInstance.physicalMaterial}, Part Name: ${partInstance.info?.name}` - ) const physicalMaterial = parser.assembly.data!.materials!.physicalMaterials![ partInstance.physicalMaterial ?? DEFAULT_PHYSICAL_MATERIAL_KEY ] - console.debug(physicalMaterial) - console.debug( - `Override: ${partDefinition?.frictionOverride == null || partDefinition?.frictionOverride == undefined}` - ) let frictionOverride: number | undefined = partDefinition?.frictionOverride == null ? undefined : partDefinition?.frictionOverride @@ -748,9 +740,6 @@ class PhysicsSystem extends WorldSystem { weight: partDefinition.physicalData?.area ?? 1.0, } frictionAccum.push(frictionPairing) - console.debug( - `(${frictionPairing.dynamic.toFixed(3)}, ${frictionPairing.static.toFixed(3)}) [${frictionPairing.weight.toFixed(3)}]` - ) if (!partDefinition.physicalData?.com || !partDefinition.physicalData.mass) return @@ -803,7 +792,6 @@ class PhysicsSystem extends WorldSystem { // I guess this is an okay substitute. const friction = (staticFriction + dynamicFriction) / 2.0 body.SetFriction(friction) - console.debug(`Friction: ${friction}`) // Little testing components this._bodies.push(body.GetID())