mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Updated module name, added check for valid color
This commit is contained in:
parent
5afb500908
commit
0aeeec4e35
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ class FusionSetToolColor(api.InventoryAction):
|
|||
first = containers[0]
|
||||
color = QtGui.QColor(first.get("color", self._fallback_color))
|
||||
picked_color = QtWidgets.QColorDialog().getColor(color)
|
||||
if not picked_color.isValid():
|
||||
return result
|
||||
|
||||
with avalon.fusion.comp_lock_and_undo_chunk(comp):
|
||||
for container in containers:
|
||||
# Convert color to RGB 0-1 floats
|
||||
Loading…
Add table
Add a link
Reference in a new issue