svn merge -r39792:39829 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / editors / object / object_add.c
index 838523599c5718741ebf31609f61f802148132a3..45888b1486b5bec96f009d110e29c5bc0a048617 100644 (file)
@@ -277,8 +277,10 @@ int ED_object_add_generic_get_opts(bContext *C, wmOperator *op, float *loc,
                RNA_boolean_set(op->ptr, "view_align", view_align);
        }
        
-       if (view_align)
+       if (view_align) {
                ED_object_rotation_from_view(C, rot);
+               RNA_float_set_array(op->ptr, "rotation", rot);
+       }
        else
                RNA_float_get_array(op->ptr, "rotation", rot);