forked from bartvdbraak/blender
Fix for previous commit - broke WM_OT_context_set_* operators for non float/int types.
This commit is contained in:
parent
a37aa8d11d
commit
3881bb5309
@ -61,10 +61,15 @@ 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'}
|
||||
if self.properties.relative:
|
||||
exec("context.%s+=self.properties.value" % self.properties.path)
|
||||
else:
|
||||
exec("context.%s=self.properties.value" % self.properties.path)
|
||||
|
||||
try:
|
||||
if self.properties.relative:
|
||||
exec("context.%s+=self.properties.value" % self.properties.path)
|
||||
return {'FINISHED'}
|
||||
except AttributeError:
|
||||
pass # no relative property exists
|
||||
|
||||
exec("context.%s=self.properties.value" % self.properties.path)
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user