Problem summary
2D Objects report as 3D Objects when using
is2DPaintObject() with
entityAdded() Python signal
Customer reported version
Mari 7.1v2
Steps to reproduce
The following is an example, but this issue can be reproduced with various scripts:
- Launch Mari, open any project, and run the following command in the Python Console:
def new_object_message(geo): if geo.is2DPaintObject(): mari.utils.misc.message(text='2D Object created', title='2D Object created') else: mari.utils.misc.message(text='3D Object created', title='3D Object created')mari.geo.entityAdded.connect(new_object_message)
2. Select
Objects palette > 2d tab > Create new 2D Paint
3. Select
Ok in the creation dialog
Expected behaviour
The pop-up message that appears after creation should say "2D Object created"
Actual behaviour
The pop-up message that appears after creation says "3D Object created"
Workaround
Instead, users can check that the name of the Object starts with
2D Paint:
Reproduced by support
This bug has been reproduced in:
Mari 7.1v2 - Windows 10 - Rocky 9
Mari 7.1v1 - Windows 10 - Rocky 9
Earliest version tested
Mari 7.1v1 - This feature (2D Paint) did not exist before this version