Fix [#21651] After Fix # 21114 Adding mesh in local at cursor position doesn't work
authorMatt Ebb <matt@mke3.net>
Thu, 18 Mar 2010 01:26:56 +0000 (01:26 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 18 Mar 2010 01:26:56 +0000 (01:26 +0000)
Silly bug from yesterday..

source/blender/editors/object/object_add.c

index d852d66fb6daeadcc3ba36dc24fe06788ef43577..b1405d1d12e081c08df23a789736b1f4283b87a1 100644 (file)
@@ -105,8 +105,11 @@ void ED_object_location_from_view(bContext *C, float *loc)
 {
        View3D *v3d= CTX_wm_view3d(C);
        Scene *scene= CTX_data_scene(C);
+       float *cursor;
        
-       loc = give_cursor(scene, v3d);
+       cursor = give_cursor(scene, v3d);
+
+       copy_v3_v3(loc, cursor);
 }
 
 void ED_object_rotation_from_view(bContext *C, float *rot)