Hide internal property of knife_cut operator
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 Jan 2012 16:24:02 +0000 (16:24 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 Jan 2012 16:24:02 +0000 (16:24 +0000)
source/blender/editors/mesh/editmesh_loop.c

index d9854ea76782b4f246954bc05d1051bf6bdd9eee..19adaa977bf17fca446a0859fd762476238da708 100644 (file)
@@ -407,7 +407,8 @@ void MESH_OT_knife_cut(wmOperatorType *ot)
        // doesn't work atm.. RNA_def_enum(ot->srna, "corner_cut_pattern", corner_type_items, SUBDIV_CORNER_INNERVERT, "Corner Cut Pattern", "Topology pattern to use to fill a face after cutting across its corner");
        
        /* internal */
-       RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, INT_MAX, "Cursor", "", 0, INT_MAX);
+       prop = RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, INT_MAX, "Cursor", "", 0, INT_MAX);
+       RNA_def_property_flag(prop, PROP_HIDDEN);
 }
 
 /* ******************************************************* */