diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-05-27 19:35:34 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2019-05-27 19:39:06 +0300 |
commit | d83d376c02412b14dd16493ea09ac77a27a9ca30 (patch) | |
tree | 625317a478be04e04135a5f544fe159305fe6910 /source/blender/editors/io | |
parent | dee7edffcf2a6c4a1ce35ab5d5ab35873d113c0f (diff) |
cleanup: Collada exporter renamed 'transrotloc' to 'decomposed'
The collada exporter allows to export transforms either as Matrix
or as a decomposition of Translation, Rotation aand Scale.
The decomposition option was falsely named "TransRotLoc".
I renamed it to the much more descriptive word "Decomposed".
The tooltip already contains sufficient information, so there
is no need to change that.
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r-- | source/blender/editors/io/io_collada.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index fc3bf74f386..c5c24051299 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -223,10 +223,10 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op) if (export_animation_type != BC_ANIMATION_EXPORT_SAMPLES) { // When curves are exported then we can not export as matrix - export_settings.animation_transformation_type = BC_TRANSFORMATION_TYPE_TRANSROTLOC; + export_settings.animation_transformation_type = BC_TRANSFORMATION_TYPE_DECOMPOSED; } - if (export_settings.animation_transformation_type != BC_TRANSFORMATION_TYPE_TRANSROTLOC) { + if (export_settings.animation_transformation_type != BC_TRANSFORMATION_TYPE_DECOMPOSED) { // Can not export smooth curves when Matrix export is enabled. export_settings.keep_smooth_curves = false; } @@ -397,7 +397,7 @@ static void uiCollada_exportSettings(uiLayout *layout, PointerRNA *imfptr) uiItemR(row, imfptr, "keep_smooth_curves", 0, NULL, ICON_NONE); uiLayoutSetEnabled(row, include_animations && - (animation_transformation_type == BC_TRANSFORMATION_TYPE_TRANSROTLOC || + (animation_transformation_type == BC_TRANSFORMATION_TYPE_DECOMPOSED || animation_type == BC_ANIMATION_EXPORT_KEYS)); row = uiLayoutColumn(box, false); @@ -496,11 +496,11 @@ void WM_OT_collada_export(wmOperatorType *ot) 0, "Matrix", "Use <matrix> representation for exported transformations"}, - {BC_TRANSFORMATION_TYPE_TRANSROTLOC, - "transrotloc", + {BC_TRANSFORMATION_TYPE_DECOMPOSED, + "decomposed", 0, - "TransRotLoc", - "Use <translate>, <rotate>, <scale> representation for exported transformations"}, + "Decomposed", + "Use <rotate>, <translate> and <scale> representation for exported transformations"}, {0, NULL, 0, NULL, NULL}}; static const EnumPropertyItem prop_bc_export_animation_type[] = { |