Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
PingHsunTsai committed Jun 26, 2024
1 parent ca29b15 commit 076d5bd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/compas_viewer/scene/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,17 @@ def __init__(self, name: str = "ViewerScene", context: str = "Viewer"):
self._instance_colors_generator = instance_colors_generator()

@property
<<<<<<< HEAD
def viewer(self):
from compas_viewer import Viewer

return Viewer()
=======

@property
def observer(self):
"""Observer: The observer object for the scene."""
if self._observer is None:
self._observer = Observer()
return self._observer
>>>>>>> 45eaaab56 (clean up)

# TODO: These fixed kwargs could be moved to COMPAS core.
def add(
Expand Down Expand Up @@ -195,10 +194,7 @@ def add(
u=u,
**kwargs,
)
<<<<<<< HEAD
=======
self.observer.request_update()
>>>>>>> 45eaaab56 (clean up)
return sceneobject

def remove(self, obj: ViewerSceneObject) -> None:
Expand Down

0 comments on commit 076d5bd

Please sign in to comment.