[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34985] trunk/blender/release/scripts/op/ wm.py: fix [#26104] Context Set Boolean op fails [34892i]
Campbell Barton
ideasman42 at gmail.com
Sat Feb 19 05:28:08 CET 2011
Revision: 34985
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34985
Author: campbellbarton
Date: 2011-02-19 04:28:07 +0000 (Sat, 19 Feb 2011)
Log Message:
-----------
fix [#26104] Context Set Boolean op fails [34892i]
could give better feedback but these operators are mainly for internal use.
Modified Paths:
--------------
trunk/blender/release/scripts/op/wm.py
Modified: trunk/blender/release/scripts/op/wm.py
===================================================================
--- trunk/blender/release/scripts/op/wm.py 2011-02-19 00:58:46 UTC (rev 34984)
+++ trunk/blender/release/scripts/op/wm.py 2011-02-19 04:28:07 UTC (rev 34985)
@@ -51,7 +51,7 @@
def context_path_validate(context, data_path):
import sys
try:
- value = eval("context.%s" % data_path)
+ value = eval("context.%s" % data_path) if data_path else Ellipsis
except AttributeError:
if "'NoneType'" in str(sys.exc_info()[1]):
# One of the items in the rna path is None, just ignore this
More information about the Bf-blender-cvs
mailing list