Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Handle WB defaults like everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed May 24, 2015
1 parent 638fa7d commit d68ac51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rawkit/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def __init__(self):
"""
for i in self.__slots__:
setattr(self, i, None)
self.white_balance = WhiteBalance(auto=True, camera=True)

@property
def colorspace(self):
Expand Down Expand Up @@ -156,7 +155,10 @@ def white_balance(self):
:class:`rawkit.libraw.libraw_output_params_t.greybox`
:class:`rawkit.libraw.libraw_output_params_t.user_mul`
"""
return self._white_balance
if self._white_balance is not None:
return self._white_balance
else:
return WhiteBalance(auto=True, camera=True)

@white_balance.setter
def white_balance(self, value):
Expand Down

0 comments on commit d68ac51

Please sign in to comment.