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:
authorCampbell Barton <ideasman42@gmail.com>2006-04-26 12:22:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-04-26 12:22:39 +0400
commitb69db8f090a2c49a9236893ece38aba2dd25e614 (patch)
tree8eec177a32e14fc8223e8a472b6d0eb13b8072fe /source/blender/src/buttons_script.c
parentf9597df32d6ed03c1552e4049d16465b5abb675b (diff)
Made space handelers check that G_DOSCRIPTLINKS is enabled before running.
Its scary to think that a redraw space handeler could run import os os.system('rm -rf ~/') removing all user files, Just by opening the blend file! This means at least you can opt not to run any python scripts you dont want to..
Diffstat (limited to 'source/blender/src/buttons_script.c')
-rw-r--r--source/blender/src/buttons_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/buttons_script.c b/source/blender/src/buttons_script.c
index f56b56d0965..a30163b4da3 100644
--- a/source/blender/src/buttons_script.c
+++ b/source/blender/src/buttons_script.c
@@ -322,7 +322,7 @@ static void script_panel_scriptlink(void)
uiDefButBitI(block, TOG, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT,
"Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0,
- "Enable execution of all assigned Script links");
+ "Enable execution of all assigned Script links amd Space Handelers");
/* for proper alignment: */
uiDefBut(block, LABEL, 0, "", 160, 200,150,20, NULL, 0.0, 0.0, 0, 0, "");