bpy.ops module/caller classes incorrectly had __keys__ rather then __slots__.

also added comments about texface drawing when theres no origindex.
This commit is contained in:
Campbell Barton
2012-12-06 03:09:06 +00:00
parent a864259d50
commit 7c2e4e28ba
2 changed files with 8 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ class BPyOpsSubMod(object):
eg. bpy.ops.object
"""
__keys__ = ("module",)
__slots__ = ("module",)
def __init__(self, module):
self.module = module
@@ -111,7 +111,7 @@ class BPyOpsSubModOp(object):
eg. bpy.ops.object.somefunc
"""
__keys__ = ("module", "func")
__slots__ = ("module", "func")
def _get_doc(self):
return op_as_string(self.idname())

View File

@@ -654,6 +654,9 @@ static void cdDM_drawFacesTex_common(DerivedMesh *dm,
if (index_mf_to_mpoly) {
orig = DM_origindex_mface_mpoly(index_mf_to_mpoly, index_mp_to_orig, i);
if (orig == ORIGINDEX_NONE) {
/* XXX, this is not really correct
* it will draw the previous faces context for this one when we don't know its settings.
* but better then skipping it altogether. - campbell */
draw_option = DM_DRAW_OPTION_NORMAL;
}
else if (drawParamsMapped) {
@@ -756,6 +759,9 @@ static void cdDM_drawFacesTex_common(DerivedMesh *dm,
if (index_mf_to_mpoly) {
orig = DM_origindex_mface_mpoly(index_mf_to_mpoly, index_mp_to_orig, actualFace);
if (orig == ORIGINDEX_NONE) {
/* XXX, this is not really correct
* it will draw the previous faces context for this one when we don't know its settings.
* but better then skipping it altogether. - campbell */
draw_option = DM_DRAW_OPTION_NORMAL;
}
else if (drawParamsMapped) {