global is python keyword so cant use as operator argument,

also ran operator cheat sheet and made sure no syntax errors.

+ minor pep8 edits.
This commit is contained in:
2011-12-09 10:19:11 +00:00
parent f025b7b511
commit 2827f57f62
3 changed files with 7 additions and 6 deletions

View File

@@ -893,7 +893,7 @@ static int object_delete_exec(bContext *C, wmOperator *op)
{
Main *bmain= CTX_data_main(C);
Scene *scene= CTX_data_scene(C);
const short use_global= RNA_boolean_get(op->ptr, "global");
const short use_global= RNA_boolean_get(op->ptr, "use_global");
/* int islamp= 0; */ /* UNUSED */
if(CTX_data_edit_object(C))
@@ -951,7 +951,7 @@ void OBJECT_OT_delete(wmOperatorType *ot)
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
RNA_def_boolean(ot->srna, "global", 0, "Delete Globally", "Remove object from all scenes");
RNA_def_boolean(ot->srna, "use_global", 0, "Delete Globally", "Remove object from all scenes");
}
/**************************** Copy Utilities ******************************/