Skip to content

Commit

Permalink
Sinplified func(self) (#309)
Browse files Browse the repository at this point in the history
Co-authored-by: hlorus <[email protected]>
  • Loading branch information
Nex-Pro and hlorus authored Nov 13, 2023
1 parent 5e83f4b commit a7c2d0a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions model/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ def slvs_entity_pointer(cls, name, **kwargs):
@property
def func(self):
index = getattr(self, index_prop)
if index == -1:
return None
else:
return bpy.context.scene.sketcher.entities.get(index)

return None if index == -1 else bpy.context.scene.sketcher.entities.get(index)
setattr(cls, name, func)

@func.setter
Expand Down

0 comments on commit a7c2d0a

Please sign in to comment.