ID 371052 - When the Bake Behaviour has been manually set to AutoBakeAndClear and the bake(self) function has been called, Mari ignores the called function and the Paint Buffer is cleared after baking.

Follow

Problem summary
When the Bake Behaviour has been manually set to AutoBakeAndClear and the bake(self) function has been called, Mari ignores the called function and the Paint Buffer is cleared after baking.

Customer reported version
4.2v1

Customer reported platform
multiple

Steps to reproduce

1) Open Mari

2) Open an example project

3) Go to Painting>Projection and set the Bake Behaviour to AutoBakeAndClear 

4) Open the Python Console using Ctrl+Alt+P

5) Paint something onto the Frame Buffer 

6) Execute the following function:

buffer = mari.canvases.paintBuffer()
buffer.bake()

7) The bake(self) function is ignored by Mari and it is overwritten by the Bake Behaviour AutoBakeAndClear settings

Workaround
Unknown. 

Reproduced by support
This bug has been reproduced in:
Mari 4.2v1 - Windows 10 - CentOS 7 
Mari 3.4v2 - Windows 10 - MacOS 10.12
Mari 3.0v4 - Windows 10 
Mari 2.6v5 - Windows 10 - CentOS 7 - MacOS 10.12

Earliest version tested
Mari 2.6v5 - This issue appears to be in all versions of the product

Expected behaviour
The bake(self) function should overwrite the AutoBakeAndClear Bake Behaviour and it should not clear the Paint Buffer

Actual behaviour
The bake(self) function is acting the same as bakeAndClear(self) as it bakes and clears the Paint Buffer

    We're sorry to hear that

    Please tell us why