Skip to content

Commit e1a5edc

Browse files
authored
Merge pull request #6231 from murraystevenson/pythonEditorDropText
PythonEditor : Fix text insertion from dropped VectorData
2 parents b9a5369 + 004ba44 commit e1a5edc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: Changes.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
1.4.15.x (relative to 1.4.15.4)
22
========
33

4+
Fixes
5+
-----
46

7+
- PythonEditor : Fixed bug preventing values from being inserted when dragging most VectorData types into the PythonEditor.
58

69
1.4.15.4 (relative to 1.4.15.3)
710
========

Diff for: python/GafferUI/PythonEditor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __activated( self, widget ) :
159159

160160
def __dropText( self, widget, dragData ) :
161161

162-
if isinstance( dragData, IECore.StringVectorData ) :
162+
if IECore.DataTraits.isSequenceDataType( dragData ) :
163163
return repr( list( dragData ) )
164164
elif isinstance( dragData, Gaffer.GraphComponent ) :
165165
if self.scriptNode().isAncestorOf( dragData ) :

0 commit comments

Comments
 (0)