diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-04-26 12:22:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-04-26 12:22:39 +0400 |
commit | b69db8f090a2c49a9236893ece38aba2dd25e614 (patch) | |
tree | 8eec177a32e14fc8223e8a472b6d0eb13b8072fe /source/blender/src/buttons_script.c | |
parent | f9597df32d6ed03c1552e4049d16465b5abb675b (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.c | 2 |
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, ""); |