Skip to content

Commit

Permalink
bug fix on python3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
leixingyu committed May 13, 2022
1 parent 8e3da67 commit ac885ae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from utility import _vendor
from .utility import _vendor
3 changes: 2 additions & 1 deletion chain/chainEP.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def init_extra(self):
self.extra_widget = QtWidgets.QWidget()
_loadUi(os.path.join(UI_DIR, self.extra_ui), self.extra_widget)

self.extra_widget.ui_set_btn.clicked.connect(self.set_selection)
# PySide2 bug:https://stackoverflow.com/questions/68927598/
self.extra_widget.ui_set_btn.clicked.connect(lambda: self.set_selection())

def parse_extra(self):
"""Override"""
Expand Down
6 changes: 3 additions & 3 deletions shape.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import maya.cmds as cmds

import util
from utility import nurbs
from utility.useful import strGenerator
from . import util
from .utility import nurbs
from .utility.useful import strGenerator


NAMER = strGenerator.StrGenerator(prefix='tmp_')
Expand Down
2 changes: 1 addition & 1 deletion util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import maya.cmds as cmds

from utility.nurbs import util
from .utility.nurbs import util


G_LOC_GRP = '_Locators'
Expand Down

0 comments on commit ac885ae

Please sign in to comment.