* Set some custom empty draw types on adding force fields, where relevant
authorMatt Ebb <matt@mke3.net>
Mon, 2 Nov 2009 11:37:35 +0000 (11:37 +0000)
committerMatt Ebb <matt@mke3.net>
Mon, 2 Nov 2009 11:37:35 +0000 (11:37 +0000)
source/blender/editors/object/object_add.c

index cbf08fb..f61cf9b 100644 (file)
@@ -232,9 +232,19 @@ static Object *effector_add_type(bContext *C, int type)
                BLI_addtail(curve_get_editcurve(ob), add_nurbs_primitive(C, CU_NURBS|CU_PRIM_PATH, 1));
                ED_object_exit_editmode(C, EM_FREEDATA|EM_DO_UNDO);
        }
-       else
+       else {
                ob=     add_object(scene, OB_EMPTY);
-
+       
+               switch(type) {
+                       case PFIELD_WIND:
+                       case PFIELD_VORTEX:
+                               ob->empty_drawtype = OB_SINGLE_ARROW;
+                               break;          
+               }
+       }
+       
+       
+       
        ob->pd= object_add_collision_fields(type);
 
        /* editor level activate, notifiers */