app: add layer mode flags to mark blend and compositing modes immutable
set all legacy modes to completely immutable and the LAB modes' blend mode to immutable. Change GimpLayer setters and the UI accordingly. Remove the LAB color spaces from the GUI, they can only be used with the LAB blend modes anyway and not changed.
This commit is contained in:
@ -170,8 +170,11 @@ typedef enum /*< pdb-skip, skip >*/
|
||||
|
||||
typedef enum /*< pdb-skip, skip >*/
|
||||
{
|
||||
GIMP_LAYER_MODE_FLAG_LEGACY = 1 << 0,
|
||||
GIMP_LAYER_MODE_FLAG_WANTS_LINEAR_DATA = 1 << 1
|
||||
GIMP_LAYER_MODE_FLAG_LEGACY = 1 << 0,
|
||||
GIMP_LAYER_MODE_FLAG_WANTS_LINEAR_DATA = 1 << 1,
|
||||
GIMP_LAYER_MODE_FLAG_BLEND_SPACE_IMMUTABLE = 1 << 2,
|
||||
GIMP_LAYER_MODE_FLAG_COMPOSITE_SPACE_IMMUTABLE = 1 << 3,
|
||||
GIMP_LAYER_MODE_FLAG_COMPOSITE_MODE_IMMUTABLE = 1 << 4,
|
||||
} GimpLayerModeFlags;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user