Skip to content

[BUG] Anim Picker using obsolete PySide function; HighQualityAntialiasing #580

@ragtag

Description

@ragtag

🐞 Bug Report

Description

The AnimPicker fails to load properly on Linux in Maya 2025, because it's using a PySide function that is no longer supported in PySide6; HighQualityAntialiasing. I'm not sure if this applies on Windows too, as it may never get "True" on the "if basic.USE_OPENGL" test.

The AnimPicker opens, but the picker itself shows nothing, and you're unable to do anything in it, like add new buttons.

Steps to Reproduce

  1. Open the AnimPicker in Maya on Linux

Maya Version

  • Maya Version: 2025
  • OS: Rocky Linux 8

mGear Version

  • mGear Version: 5.1.0

Additional Context

Here is a patch that should fix it.

--- /local/pack/rpm/mgear5.1.0-1/sw/mgear/5.1.0/release/scripts/mgear/anim_picker/widgets/picker_widgets.py	2025-07-13 10:05:27.000000000 +0200
+++ picker_widgets.py	2025-09-23 11:59:33.038617310 +0200
@@ -1486,10 +1486,7 @@
 
     def paint(self, painter, options, widget=None):
         """Paint graphic item"""
-        if basic.__USE_OPENGL__:
-            painter.setRenderHint(QtGui.QPainter.HighQualityAntialiasing)
-        else:
-            painter.setRenderHint(QtGui.QPainter.Antialiasing)
+        painter.setRenderHint(QtGui.QPainter.Antialiasing)
 
         # Get polygon path
         path = self.shape()
@@ -1597,10 +1594,7 @@
     def paint(self, painter, options, widget=None):
         """Paint graphic item"""
         # Set render quality
-        if basic.__USE_OPENGL__:
-            painter.setRenderHint(QtGui.QPainter.HighQualityAntialiasing)
-        else:
-            painter.setRenderHint(QtGui.QPainter.Antialiasing)
+        painter.setRenderHint(QtGui.QPainter.Antialiasing)
 
         # Get polygon path
         path = self.shape()
@@ -1826,10 +1820,7 @@
         pass
         # for debug only
         # # Set render quality
-        # if basic.__USE_OPENGL__:
-        #    painter.setRenderHint(QtGui.QPainter.HighQualityAntialiasing)
-        # else:
-        #    painter.setRenderHint(QtGui.QPainter.Antialiasing)
+        # painter.setRenderHint(QtGui.QPainter.Antialiasing)
 
         # # Get polygon path
         # path = self.shape()

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

WIP

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions