[Aqsis-commits] [SCM] RIBMosaic Experimental branch master updated. afabab674251ceee7c9bfc27e0aaa05
Brought to you by:
ltatkinson,
pgregory
From: <gi...@aq...> - 2011-05-21 03:21:45
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "RIBMosaic Experimental". The branch, master has been updated via afabab674251ceee7c9bfc27e0aaa0546640110d (commit) from a48c48d7f29a744f496a5bc7af259573613fc5b0 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit afabab674251ceee7c9bfc27e0aaa0546640110d Author: Jeff Doyle (nfz) <she...@ea...> Date: Fri May 20 21:21:41 2011 -0300 Only allow loading of a pipeline if the current blend has a working directory. diff --git a/render_ribmosaic/rm_operator.py b/render_ribmosaic/rm_operator.py index 3910c62..bef7a49 100644 --- a/render_ribmosaic/rm_operator.py +++ b/render_ribmosaic/rm_operator.py @@ -1386,7 +1386,8 @@ class WM_OT_ribmosaic_pipeline_load(rm_context.ExportContext, def execute(self, context): wm = context.window_manager - # If no selections and *.rmp then collect all pipelines in directory + # If no selections and *.rmp then collect + # all pipelines in directory if not len(self.files) and self.filename == "*.rmp": for f in os.listdir(self.directory): if os.path.splitext(f)[1].lower() == ".rmp": @@ -1411,6 +1412,15 @@ class WM_OT_ribmosaic_pipeline_load(rm_context.ExportContext, def invoke(self, context, event): wm = context.window_manager + try: + if bpy.data.is_saved: + pass + else: + raise rm_error.RibmosaicError("Blend must be saved before " + "Pipeline can be loaded") + except rm_error.RibmosaicError as err: + err.ReportError(self) + return {'CANCELLED'} wm.fileselect_add(self) ----------------------------------------------------------------------- Summary of changes: render_ribmosaic/rm_operator.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) hooks/post-receive -- RIBMosaic Experimental |