update tagged objects in the scene after calling each operator, this makes running a set of recorded operators work as expected.

This commit is contained in:
Campbell Barton 2010-01-26 08:41:16 +00:00
parent 07a4986be7
commit 3150e4ee12

@ -134,7 +134,11 @@ class bpy_ops_submodule_op(object):
def idname(self):
# submod.foo -> SUBMOD_OT_foo
return self.module + '.' + self.func
return self.module.upper() + "_OT_" + self.func
def idname_py(self):
# submod.foo -> SUBMOD_OT_foo
return self.module + "." + self.func
def __call__(self, *args, **kw):
@ -166,10 +170,16 @@ class bpy_ops_submodule_op(object):
if len(args) == 2:
C_dict = args[1]
return op_call(self.idname(), C_dict, kw, context)
ret = op_call(self.idname_py(), C_dict, kw, context)
else:
return op_call(self.idname(), C_dict, kw)
ret = op_call(self.idname_py(), C_dict, kw)
if 'FINISHED' in ret:
import bpy
bpy.context.scene.update()
return ret
def get_rna(self):
'''