Skip to content

Commit

Permalink
fix: use object.assign instead of lodash assign
Browse files Browse the repository at this point in the history
  • Loading branch information
vis-prime committed Sep 7, 2023
1 parent d744243 commit 6cda825
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/Outlines.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as THREE from 'three'
import { toCreasedNormals } from 'three-stdlib'
import { shaderMaterial } from './shaderMaterial'
import { assign } from 'lodash-es'

export type OutlinesProps = {
/** Outline color, default: black */
Expand Down Expand Up @@ -108,7 +107,7 @@ export function Outlines({
const mesh = group.children[0] as THREE.Mesh<THREE.BufferGeometry, THREE.Material>
if (mesh) {
const { transparent, thickness, color, opacity } = shapeProps
assign(mesh.material, { transparent, thickness, color, opacity })
Object.assign(mesh.material, { transparent, thickness, color, opacity })
}
}

Expand Down

0 comments on commit 6cda825

Please sign in to comment.