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>2008-04-23 18:04:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-23 18:04:05 +0400
commit4f49a3b906bd4974056ca734beda7241b70031dc (patch)
treec64ae47ea0432e7ca17b1279523827b23d5557f9 /source/blender/python
parent3552afeef2998b927ac5828a1904bd6c2d5034b6 (diff)
added ipo script template from blenderartists forTe, made scripts refresh on load factory settings and replaced elysiun with blenderartist.org in headers
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/BPY_extern.h3
-rw-r--r--source/blender/python/BPY_interface.c10
-rw-r--r--source/blender/python/api2_2x/doc/API_related.py6
3 files changed, 15 insertions, 4 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h
index 41e8004e25b..f6a27b80733 100644
--- a/source/blender/python/BPY_extern.h
+++ b/source/blender/python/BPY_extern.h
@@ -84,7 +84,8 @@ extern "C" {
void init_syspath( int first_time );
void syspath_append( char *dir );
void BPY_rebuild_syspath( void );
-
+ int BPY_path_update( void );
+
int BPY_Err_getLinenumber( void );
const char *BPY_Err_getFilename( void );
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c
index 9bdb4425766..9d1d0e0f7d6 100644
--- a/source/blender/python/BPY_interface.c
+++ b/source/blender/python/BPY_interface.c
@@ -462,6 +462,16 @@ void BPY_rebuild_syspath( void )
PyGILState_Release(gilstate);
}
+int BPY_path_update( void )
+{
+ BPyMenu_RemoveAllEntries(); /* free old data */
+ BPY_rebuild_syspath();
+ if (BPyMenu_Init(1) == -1) { /* re-eval scripts registration in menus */
+ return 0;
+ }
+ return 1;
+}
+
/****************************************************************************
* Description: This function finishes Python initialization in Blender.
diff --git a/source/blender/python/api2_2x/doc/API_related.py b/source/blender/python/api2_2x/doc/API_related.py
index 87b29e7f524..4e29f95e76d 100644
--- a/source/blender/python/api2_2x/doc/API_related.py
+++ b/source/blender/python/api2_2x/doc/API_related.py
@@ -351,8 +351,8 @@ Introduction:
expected format for each url entry is e.g.
"Author's site, http://www.somewhere.com". The first part, before the
comma (','), is used as the button's tooltip. There are two preset
- options: "blender" and "elysiun", which link to the Python forums at
- blender.org and elysiun.com, respectively.
+ options: "blender" and "blenderartists.org", which link to the Python forums at
+ blender.org and blenderartists.org, respectively.
- __email__ (optional, type: string or list of strings):
- Equivalent to __url__, but opens the user's default email client. You
@@ -369,7 +369,7 @@ Introduction:
__author__ = 'Mr. Author'
__version__ = '1.0 2005/01/01'
__url__ = ["Author's site, http://somewhere.com",
- "Support forum, http://somewhere.com/forum/", "blender", "elysiun"]
+ "Support forum, http://somewhere.com/forum/", "blender", "blenderartists.org"]
__email__ = ["Mr. Author, mrauthor:somewhere*com", "scripts"]
__bpydoc__ = \"\"\"\\
This script does this and that.