From f75005c2a89f6cc5f1bdac33e26341a14ed92888 Mon Sep 17 00:00:00 2001 From: Jiri Hnidek Date: Wed, 29 Jul 2009 12:35:09 +0000 Subject: 2.5 MetaBalls - It is possible to work with MetaBalls in edit mode now - Added basic UI to the button window (feel free to change it :-)) - Header menus should work - Undo & redo should work - Removed global variable editelems and lastelem (moved it to the MetaBall struct) - All tools from old editmball.c was converted to the operators - Added lastelem to the RNA - Experimental: mb->editelems is only pointer at mb->elems or NULL (depends on Mode). ListBase of MetaElems is not duplicated in edit mode. Tested with scons at Linux and mac OS X TODO: - Recalc data after Undo or Redo - Solve issue with basic MetaBall and Python UI script (only base MetaBall object influence Wiresize and Threshold) - Fix orientation of manipulator in "Normal mode" --- source/blender/editors/space_api/spacetypes.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/space_api') diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c index b427742077a..5c33b648947 100644 --- a/source/blender/editors/space_api/spacetypes.c +++ b/source/blender/editors/space_api/spacetypes.c @@ -51,6 +51,7 @@ #include "ED_sculpt.h" #include "ED_space_api.h" #include "ED_uvedit.h" +#include "ED_mball.h" /* only call once on startup, storage is global in BKE kernel listbase */ void ED_spacetypes_init(void) @@ -93,6 +94,7 @@ void ED_spacetypes_init(void) ED_operatortypes_marker(); ED_operatortypes_pointcache(); ED_operatortypes_fluid(); + ED_operatortypes_metaball(); ED_operatortypes_boids(); ui_view2d_operatortypes(); @@ -120,6 +122,7 @@ void ED_spacetypes_keymap(wmWindowManager *wm) ED_keymap_curve(wm); ED_keymap_armature(wm); ED_keymap_particle(wm); + ED_keymap_metaball(wm); ED_marker_keymap(wm); UI_view2d_keymap(wm); -- cgit v1.2.3