Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/src/header_script.c')
-rw-r--r--source/blender/src/header_script.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/src/header_script.c b/source/blender/src/header_script.c
index 9b1d618ab7e..0ce38ec9846 100644
--- a/source/blender/src/header_script.c
+++ b/source/blender/src/header_script.c
@@ -202,6 +202,9 @@ void do_script_buttons(unsigned short event)
allqueue(REDRAWHEADERS, 0);
}
break;
+ case B_SCRIPT2BUTS:
+ newspace(curarea, SPACE_BUTS);
+ break;
}
return;
@@ -267,6 +270,12 @@ void script_buttons(void)
xco += 2*XIC;
xco= std_libbuttons(block, xco, 0, 0, NULL, B_SCRIPTBROWSE, (ID*)sc->script, 0, &(sc->menunr), 0, 0, 0, 0, 0);
+ if (sc->script && sc->script->lastspace == SPACE_BUTS) {
+ xco += 10;
+ uiDefIconBut(block, BUT, B_SCRIPT2BUTS, ICON_BUTS, xco+=XIC, 0, XIC, YIC,
+ 0, 0, 0, 0, 0, "Returns to Buttons Window");
+ }
+
/* always as last */
curarea->headbutlen= xco+2*XIC;