Collada: Mark the I/O operators as legacy in the UI.

Ref. https://devtalk.blender.org/t/moving-collada-i-o-to-legacy-status/34621
This commit is contained in:
Bastien Montagne
2024-05-21 17:01:15 +02:00
parent 528d946858
commit 82f9501a4a
2 changed files with 4 additions and 4 deletions

View File

@@ -426,7 +426,7 @@ class TOPBAR_MT_file_import(Menu):
def draw(self, _context):
if bpy.app.build_options.collada:
self.layout.operator("wm.collada_import", text="Collada (.dae)")
self.layout.operator("wm.collada_import", text="Collada (.dae) (Legacy)")
if bpy.app.build_options.alembic:
self.layout.operator("wm.alembic_import", text="Alembic (.abc)")
if bpy.app.build_options.usd:
@@ -451,7 +451,7 @@ class TOPBAR_MT_file_export(Menu):
def draw(self, _context):
if bpy.app.build_options.collada:
self.layout.operator("wm.collada_export", text="Collada (.dae)")
self.layout.operator("wm.collada_export", text="Collada (.dae) (Legacy)")
if bpy.app.build_options.alembic:
self.layout.operator("wm.alembic_export", text="Alembic (.abc)")
if bpy.app.build_options.usd:

View File

@@ -463,7 +463,7 @@ void WM_OT_collada_export(wmOperatorType *ot)
{BC_UI_SECTION_COLLADA, "collada", 0, "Extra", "Collada export section"},
{0, nullptr, 0, nullptr, nullptr}};
ot->name = "Export COLLADA";
ot->name = "Export COLLADA (Legacy)";
ot->description = "Save a Collada file";
ot->idname = "WM_OT_collada_export";
@@ -799,7 +799,7 @@ static void wm_collada_import_draw(bContext * /*C*/, wmOperator *op)
void WM_OT_collada_import(wmOperatorType *ot)
{
ot->name = "Import COLLADA";
ot->name = "Import COLLADA (Legacy)";
ot->description = "Load a Collada file";
ot->idname = "WM_OT_collada_import";
ot->flag = OPTYPE_UNDO | OPTYPE_PRESET;