Skip to content

Commit

Permalink
Shifter FBX tool: bug fixes in partitions outliner
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneweng committed Sep 14, 2023
1 parent 2eb0474 commit bad161a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import maya.cmds as cmds

# TODO: Remove following dependencies
# TODO: Remove dependency
import maya.app.flux.core as fx

from mgear.vendor.Qt import QtWidgets, QtCore, QtGui
Expand Down Expand Up @@ -617,14 +617,14 @@ def _on_custom_context_menu_requested(self, pos):
return
if item.is_root():
if num_indexes > 0:
pixmap = QtGui.QPixMap(100, 100)
pixmap = QtGui.QPixmap(100, 100)
pixmap.fill(self._get_label_color())
label_icon = QtGui.QIcon(pixmap)
prev_menu = self._context_menu.addMenu(
label_icon, "Label Color"
)
for color_label in LABEL_COLORS:
pixmap = QtGui.QPixMap(100, 100)
pixmap = QtGui.QPixmap(100, 100)
pixmap.fill(self._get_color_from_label(color_label))
label_icon = QtGui.QIcon(pixmap)
prev_menu.addAction(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _update_master_partition(self):

found_meshes = []
for geo_root in self._geo_roots:
if not geo_root:
if not (geo_root and cmds.objExists(geo_root)):
return
children = (
cmds.listRelatives(
Expand Down

0 comments on commit bad161a

Please sign in to comment.