Skip to content

Commit 8668f0a

Browse files
committed
Merge branch 'master' into release
2 parents 6d77233 + 330aafb commit 8668f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mpdb/scriptEditor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def enhanceScriptEditor():
640640
}
641641
''')
642642
cmds.scriptedPanelType( 'scriptEditorPanel', e=1, addCallback='addScriptEditorPanel2' )
643-
if cmds.window("scriptEditorPanel1Window",ex=1):
643+
if cmds.workspaceControl("scriptEditorPanel1Window",q=1,ex=1):
644644
# NOTE 关闭当前代码编辑器窗口
645645
cmds.deleteUI("scriptEditorPanel1Window")
646646
# NOTE 重新打开一个新的窗口

0 commit comments

Comments
 (0)