react-three-game 0.0.54 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,7 +93,7 @@ const physicsFields = [
93
93
  },
94
94
  ];
95
95
  function PhysicsComponentEditor({ component, onUpdate }) {
96
- return (_jsx(FieldRenderer, { fields: physicsFields, values: component.properties, onChange: (props) => onUpdate(Object.assign(Object.assign({}, component), { properties: Object.assign(Object.assign({}, component.properties), props) })) }));
96
+ return (_jsx(FieldRenderer, { fields: physicsFields, values: component.properties, onChange: onUpdate }));
97
97
  }
98
98
  function PhysicsComponentView({ properties, children, position, rotation, scale, editMode, nodeId, registerRigidBodyRef }) {
99
99
  const { type, colliders, sensor, activeCollisionTypes } = properties, otherProps = __rest(properties, ["type", "colliders", "sensor", "activeCollisionTypes"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-three-game",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "Batteries included React Three Fiber game engine",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -95,7 +95,7 @@ function PhysicsComponentEditor({ component, onUpdate }: { component: ComponentD
95
95
  <FieldRenderer
96
96
  fields={physicsFields}
97
97
  values={component.properties}
98
- onChange={(props) => onUpdate({ ...component, properties: { ...component.properties, ...props } })}
98
+ onChange={onUpdate}
99
99
  />
100
100
  );
101
101
  }