Commits

Mikhail Korobov committed ec23483

(backwards incompatible) Layer.visible no longer takes group visibility in account (there is Layer.visible_global for this)

Comments (0)

Files changed (1)

src/psd_tools/user_api/psd_image.py

 
     @property
     def visible(self):
+        """ Layer visibility. Doesn't take group visibility in account. """
+        return self._info.flags.visible
+
+    @property
+    def visible_global(self):
         """ Layer visibility. Takes group visibility in account. """
-        return self._info.flags.visible and self.parent.visible
+        return self.visible and self.parent.visible
 
     @property
     def layer_id(self):
     @property
     def visible(self):
         return True
+
+    @property
+    def visible_global(self):
+        return True