Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed Nov 1, 2024
1 parent 777e109 commit ac45ef8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions molecularnodes/entities/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ class MolecularEntity(
):
def __init__(self) -> None:
self.uuid: str = str(uuid1())
self._object: bpy.types.Object | None
self.type: str = ""

@object.setter
def object(self, value):
if isinstance(value, bpy.types.Object) or value is None:
self._object = value
else:
raise TypeError(f"The `object` must be a Blender object, not {value=}")
self._object: bpy.types.Object | None

@property
def bob(self) -> BlenderObject:
Expand Down

0 comments on commit ac45ef8

Please sign in to comment.