diff options
Diffstat (limited to 'io_scene_fbx/__init__.py')
-rw-r--r-- | io_scene_fbx/__init__.py | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index feea8436..185e8336 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -3,8 +3,8 @@ bl_info = { "name": "FBX format", "author": "Campbell Barton, Bastien Montagne, Jens Restemeier", - "version": (4, 36, 3), - "blender": (3, 2, 0), + "version": (4, 37, 0), + "blender": (3, 4, 0), "location": "File > Import-Export", "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions", "warning": "", @@ -89,6 +89,15 @@ class ImportFBX(bpy.types.Operator, ImportHelper): description="Import custom normals, if available (otherwise Blender will recompute them)", default=True, ) + colors_type: EnumProperty( + name="Vertex Colors", + items=(('NONE', "None", "Do not import color attributes"), + ('SRGB', "sRGB", "Expect file colors in sRGB color space"), + ('LINEAR', "Linear", "Expect file colors in linear color space"), + ), + description="Import vertex color attributes", + default='SRGB', + ) use_image_search: BoolProperty( name="Image Search", @@ -230,6 +239,7 @@ class FBX_PT_import_include(bpy.types.Panel): sub.enabled = operator.use_custom_props sub.prop(operator, "use_custom_props_enum_as_string") layout.prop(operator, "use_image_search") + layout.prop(operator, "colors_type") class FBX_PT_import_transform(bpy.types.Panel): @@ -463,6 +473,15 @@ class ExportFBX(bpy.types.Operator, ExportHelper): "(prefer 'Normals Only' option if your target importer understand split normals)", default='OFF', ) + colors_type: EnumProperty( + name="Vertex Colors", + items=(('NONE', "None", "Do not export color attributes"), + ('SRGB', "sRGB", "Export colors in sRGB color space"), + ('LINEAR', "Linear", "Export colors in linear color space"), + ), + description="Export vertex color attributes", + default='SRGB', + ) use_subsurf: BoolProperty( name="Export Subdivision Surface", description="Export the last Catmull-Rom subdivision modifier as FBX subdivision " @@ -767,6 +786,7 @@ class FBX_PT_export_geometry(bpy.types.Panel): sub = layout.row() #~ sub.enabled = operator.mesh_smooth_type in {'OFF'} sub.prop(operator, "use_tspace") + layout.prop(operator, "colors_type") class FBX_PT_export_armature(bpy.types.Panel): |