Fix for previous commit - broke WM_OT_context_set_* operators for non float/int types.

This commit is contained in:
Matt Ebb 2010-01-04 01:39:37 +00:00
parent a37aa8d11d
commit 3881bb5309

@ -61,9 +61,14 @@ def context_path_validate(context, path):
def execute_context_assign(self, context):
if context_path_validate(context, self.properties.path) is Ellipsis:
return {'PASS_THROUGH'}
try:
if self.properties.relative:
exec("context.%s+=self.properties.value" % self.properties.path)
else:
return {'FINISHED'}
except AttributeError:
pass # no relative property exists
exec("context.%s=self.properties.value" % self.properties.path)
return {'FINISHED'}