Skip to content

Commit

Permalink
More dataclass refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTov committed May 14, 2024
1 parent 89fd0f1 commit 0b0c0d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions znvis/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Module for the mesh parent class.
"""

from dataclasses import dataclass
from dataclasses import dataclass, field

import numpy as np
import open3d as o3d
Expand All @@ -41,7 +41,7 @@ class Mesh:
"""

material: Material = Material()
base_direction = np.array([1, 0, 0])
base_direction = field(default_factory=lambda: np.array([1, 0, 0]))

def __post_init__(self):
"""
Expand Down

0 comments on commit 0b0c0d4

Please sign in to comment.