[Durian-svn] [4105] allow the script to run without presets
campbell
institute at blender.org
Sun May 30 00:11:05 CEST 2010
Revision: 4105
https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=4105
Author: campbell
Date: 2010-05-30 00:11:04 +0200 (Sun, 30 May 2010)
Log Message:
-----------
allow the script to run without presets
Modified Paths:
--------------
pro/scripts/modules/finals_config.py
Modified: pro/scripts/modules/finals_config.py
===================================================================
--- pro/scripts/modules/finals_config.py 2010-05-29 19:27:20 UTC (rev 4104)
+++ pro/scripts/modules/finals_config.py 2010-05-29 22:11:04 UTC (rev 4105)
@@ -341,7 +341,12 @@
# run the preset
import os
- presets[os.environ['PRESET_SINTEL']]()
+ try:
+ sintal_preset_hair_func = presets[os.environ['PRESET_SINTEL']]
+ except:
+ sintal_preset_hair_func = sintal_preset_hair_run
+
+ sintal_preset_hair_func()
# override
psys.cloth.settings.quality = 80
More information about the Durian-svn
mailing list