Skip to content

Commit

Permalink
revert kwargs storing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Dec 24, 2018
1 parent 33861e7 commit a3411b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions trimesh/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from . import poses
from . import graph
from . import voxel
from . import visual as visual_module
from . import sample
from . import repair
from . import convex
Expand All @@ -38,6 +37,7 @@
from . import intersections
from . import transformations

from .visual import create_visual
from .io.export import export_mesh
from .constants import log, log_time, tol

Expand All @@ -59,7 +59,8 @@ def __init__(self,
validate=False,
use_embree=True,
initial_cache={},
visual=None):
visual=None,
**kwargs):
"""
A Trimesh object contains a triangular 3D mesh.
Expand Down Expand Up @@ -123,7 +124,7 @@ def __init__(self,

# hold visual information about the mesh (vertex and face colors)
if visual is None:
self.visual = visual_module.create_visual(
self.visual = create_visual(
face_colors=face_colors,
vertex_colors=vertex_colors,
mesh=self)
Expand Down Expand Up @@ -175,6 +176,9 @@ def __init__(self,
if process or validate:
self.process()

# store any passed kwargs
self._kwargs = kwargs

def process(self):
"""
Do the bare minimum processing to make a mesh useful.
Expand Down
2 changes: 1 addition & 1 deletion trimesh/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.35.48'
__version__ = '2.35.49'

0 comments on commit a3411b5

Please sign in to comment.