Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2019-05-15 17:56:22 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 19:10:58 +0300
commit06fe2a5e0c5d6202864701cf7fd800e4906057c9 (patch)
tree020910555116b6f002e87e52bb1f50a49e5967ef /source/blender/makesrna/intern/rna_userdef.c
parentddae9c92326486c5c95613bc0b7bb46e2d9bc261 (diff)
Objects: new 3D cursor alignment option when adding objects
The choices are now World, View and 3D Cursor. This breaks Python API compatibility, add-ons that add objects with this parameter will need to be updated. Differential Revision: https://developer.blender.org/D4706
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 1e5d59c1491..38877ba6fdd 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -4347,7 +4347,12 @@ static void rna_def_userdef_edit(BlenderRNA *brna)
"VIEW",
0,
"View",
- "Align newly added objects facing the active 3D View direction"},
+ "Align newly added objects to the active 3D View direction"},
+ {USER_ADD_CURSORALIGNED,
+ "CURSOR",
+ 0,
+ "3D Cursor",
+ "Align newly added objects to the 3D Cursor's rotation"},
{0, NULL, 0, NULL, NULL},
};