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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-30 09:52:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-30 09:52:03 +0400
commit281d68b0337f27514c12e405ef8635f7f840069f (patch)
treefbde5074c77f7618f981a335b95a141356b7a6f4 /system_demo_mode/__init__.py
parent91492ebc4dfa1f3deb1e2916ca80e7e472448792 (diff)
dont overwrite previous demos, update to link to wiki docs
Diffstat (limited to 'system_demo_mode/__init__.py')
-rw-r--r--system_demo_mode/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/system_demo_mode/__init__.py b/system_demo_mode/__init__.py
index e70da0ee..92006b53 100644
--- a/system_demo_mode/__init__.py
+++ b/system_demo_mode/__init__.py
@@ -27,7 +27,7 @@ bl_info = {
"description": "TODO",
"warning": "",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
- "Scripts/TODO/DemoMode",
+ "Scripts/System/Demo_Mode#Running_Demo_Mode",
"tracker_url": "",
"support": 'OFFICIAL',
"category": "Import-Export"}
@@ -87,9 +87,10 @@ class DemoModeSetup(bpy.types.Operator):
from . import config
cfg_str, dirpath = config.as_string(self.filepath, self.random_order, **keywords)
text = bpy.data.texts.get("demo.py")
- if text is None:
- text = bpy.data.texts.new("demo.py")
+ if text:
+ text.name += ".back"
+ text = bpy.data.texts.new("demo.py")
text.from_string(cfg_str)
if self.run: