diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-02-27 17:53:43 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-02-27 17:53:43 +0400 |
commit | debc3ac91072b1fb8814629fa6545734cc5d90e3 (patch) | |
tree | c62a8936dc4de7f32827d512abebc15ff5dea4ec /source/blender/editors/io | |
parent | d4d45711dc9f38802f640af5bd63fad2899b58cb (diff) |
Collada export: Add ngon support (initial)
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r-- | source/blender/editors/io/io_collada.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index 7703a8638c9..7225b5c35d3 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -92,6 +92,7 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op) int use_texture_copies; int active_uv_only; + int use_ngons; int use_object_instantiation; int sort_by_name; int second_life; @@ -118,6 +119,7 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op) use_texture_copies = RNA_boolean_get(op->ptr, "use_texture_copies"); active_uv_only = RNA_boolean_get(op->ptr, "active_uv_only"); + use_ngons = RNA_boolean_get(op->ptr, "use_ngons"); use_object_instantiation = RNA_boolean_get(op->ptr, "use_object_instantiation"); sort_by_name = RNA_boolean_get(op->ptr, "sort_by_name"); second_life = RNA_boolean_get(op->ptr, "second_life"); @@ -140,6 +142,7 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op) include_material_textures, use_texture_copies, + use_ngons, use_object_instantiation, sort_by_name, second_life)) { @@ -217,6 +220,8 @@ static void uiCollada_exportSettings(uiLayout *layout, PointerRNA *imfptr) uiItemL(row, IFACE_("Collada Options:"), ICON_MODIFIER); row = uiLayoutRow(box, FALSE); + uiItemR(row, imfptr, "use_ngons", 0, NULL, ICON_NONE); + row = uiLayoutRow(box, FALSE); uiItemR(row, imfptr, "use_object_instantiation", 0, NULL, ICON_NONE); row = uiLayoutRow(box, FALSE); uiItemR(row, imfptr, "sort_by_name", 0, NULL, ICON_NONE); @@ -293,6 +298,9 @@ void WM_OT_collada_export(wmOperatorType *ot) "Copy textures to same folder where the .dae file is exported"); + RNA_def_boolean(ot->srna, "use_ngons", 1, "Use NGons", + "Export as NGons"); + RNA_def_boolean(ot->srna, "use_object_instantiation", 1, "Use Object Instances", "Instantiate multiple Objects from same Data"); |