diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-18 08:34:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-18 08:34:56 +0400 |
commit | 509f1690112bd4aa4fd5f0c537b74422de1d4bfe (patch) | |
tree | 664e0858420a2932b52409c8efcea8e6b410150b /source/blender/editors/object/object_lod.c | |
parent | e9e08a1d12594eab0e341049fc252ff8578e9333 (diff) |
Style Cleanup
Diffstat (limited to 'source/blender/editors/object/object_lod.c')
-rw-r--r-- | source/blender/editors/object/object_lod.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/editors/object/object_lod.c b/source/blender/editors/object/object_lod.c index 952451ee21d..fdce59b10ff 100644 --- a/source/blender/editors/object/object_lod.c +++ b/source/blender/editors/object/object_lod.c @@ -48,7 +48,7 @@ #include "object_intern.h" -static int object_lod_add_exec(bContext *C, wmOperator *op) +static int object_lod_add_exec(bContext *C, wmOperator *UNUSED(op)) { Object *ob = ED_object_context(C); BKE_object_lod_add(ob); @@ -57,8 +57,6 @@ static int object_lod_add_exec(bContext *C, wmOperator *op) void OBJECT_OT_lod_add(wmOperatorType *ot) { - PropertyRNA *prop; - /* identifiers */ ot->name = "Add Level of Detail"; ot->description = "Add a level of detail to this object"; @@ -76,10 +74,11 @@ static int object_lod_remove_exec(bContext *C, wmOperator *op) { Object *ob = ED_object_context(C); int index = RNA_int_get(op->ptr, "index"); - if(!BKE_object_lod_remove(ob, index)) + + if (!BKE_object_lod_remove(ob, index)) return OPERATOR_CANCELLED; - WM_event_add_notifier(C, NC_OBJECT|ND_LOD, CTX_wm_view3d(C)); + WM_event_add_notifier(C, NC_OBJECT | ND_LOD, CTX_wm_view3d(C)); return OPERATOR_FINISHED; } @@ -99,4 +98,4 @@ void OBJECT_OT_lod_remove(wmOperatorType *ot) /* properties */ ot->prop = RNA_def_int(ot->srna, "index", 1, 1, INT_MAX, "Index", "", 1, INT_MAX); -}
\ No newline at end of file +} |