Skip to content
Snippets Groups Projects
Commit 281d68b0 authored by Campbell Barton's avatar Campbell Barton
Browse files

dont overwrite previous demos, update to link to wiki docs

parent 91492ebc
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ bl_info = { ...@@ -27,7 +27,7 @@ bl_info = {
"description": "TODO", "description": "TODO",
"warning": "", "warning": "",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\ "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
"Scripts/TODO/DemoMode", "Scripts/System/Demo_Mode#Running_Demo_Mode",
"tracker_url": "", "tracker_url": "",
"support": 'OFFICIAL', "support": 'OFFICIAL',
"category": "Import-Export"} "category": "Import-Export"}
...@@ -87,9 +87,10 @@ class DemoModeSetup(bpy.types.Operator): ...@@ -87,9 +87,10 @@ class DemoModeSetup(bpy.types.Operator):
from . import config from . import config
cfg_str, dirpath = config.as_string(self.filepath, self.random_order, **keywords) cfg_str, dirpath = config.as_string(self.filepath, self.random_order, **keywords)
text = bpy.data.texts.get("demo.py") text = bpy.data.texts.get("demo.py")
if text is None: if text:
text = bpy.data.texts.new("demo.py") text.name += ".back"
text = bpy.data.texts.new("demo.py")
text.from_string(cfg_str) text.from_string(cfg_str)
if self.run: if self.run:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment