Revision: 24460 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24460 Author: harkyman Date: 2009-11-10 20:54:59 +0100 (Tue, 10 Nov 2009)
Log Message: ----------- Add Sticky was essentially a blank operator. Possibly context functions weren't around for this one when it was first looked at. Re-attached so it works now. Modified Paths: -------------- trunk/blender/source/blender/editors/mesh/mesh_data.c Modified: trunk/blender/source/blender/editors/mesh/mesh_data.c =================================================================== --- trunk/blender/source/blender/editors/mesh/mesh_data.c 2009-11-10 19:40:35 UTC (rev 24459) +++ trunk/blender/source/blender/editors/mesh/mesh_data.c 2009-11-10 19:54:59 UTC (rev 24460) @@ -38,6 +38,7 @@ #include "DNA_meshdata_types.h" #include "DNA_object_types.h" #include "DNA_scene_types.h" +#include "DNA_view3d_types.h" #include "DNA_windowmanager_types.h" #include "BKE_context.h" @@ -63,6 +64,8 @@ #include "ED_object.h" #include "ED_view3d.h" +#include "RE_render_ext.h" + #include "mesh_intern.h" static void delete_customdata_layer(bContext *C, Object *ob, CustomDataLayer *layer) @@ -389,13 +392,15 @@ static int sticky_add_exec(bContext *C, wmOperator *op) { + Scene *scene= CTX_data_scene(C); + View3D *v3d= CTX_wm_view3d(C); Object *ob= CTX_data_pointer_get_type(C, "object", &RNA_Object).data; Mesh *me= ob->data; - if(me->msticky) - return OPERATOR_CANCELLED; + /*if(me->msticky) + return OPERATOR_CANCELLED;*/ - // XXX RE_make_sticky(); + RE_make_sticky(scene, v3d); DAG_id_flush_update(&me->id, OB_RECALC_DATA); WM_event_add_notifier(C, NC_GEOM|ND_DATA, me); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs