Remove early 2.80 development 'scene collection' compatibility code #110918

Closed
opened 2023-08-08 11:16:30 +02:00 by Bastien Montagne · 11 comments

We still have a bit of compatibility code for early 2.80 development era blendfiles, to convert SceneCollection data (see USE_COLLECTION_COMPAT_28 define usages).

This proposal is to remove this compatibility code, since:

  • This is now (almost?) 4 years old.
  • These files were never produced by any released Blender version (so removing it would not go against our compatibility policy).

While not a big amount of code, this conversion is a bit annoying as it creeps into the generic readfile process. So not a big deal to keep it, but also do not really see the point of keeping it further.

We still have a bit of compatibility code for early 2.80 development era blendfiles, to convert `SceneCollection` data (see `USE_COLLECTION_COMPAT_28` define usages). This proposal is to remove this compatibility code, since: * This is now (almost?) 4 years old. * These files were never produced by any released Blender version (so removing it would not go against our compatibility policy). While not a big amount of code, this conversion is a bit annoying as it creeps into the generic readfile process. So not a big deal to keep it, but also do not really see the point of keeping it further.
Bastien Montagne added this to the 4.0 milestone 2023-08-08 11:16:30 +02:00
Bastien Montagne added the
Interest
BlendFile
Type
Design
Module
Core
labels 2023-08-08 11:16:31 +02:00
Author
Owner
@brecht @Sergey @dfelinto @ideasman42 thoughts?

I think it is fine to remove this compatibility code.

I think it is fine to remove this compatibility code.
Bastien Montagne added the
Interest
Compatibility
label 2023-08-08 11:21:49 +02:00
Author
Owner

Proposed implementation in !110926.

Proposed implementation in !110926.

+1 to remove.

+1 to remove.

Fine by me

Fine by me
Author
Owner

Thanks, committed as 23835a393c.

Thanks, committed as 23835a393c.

Question from a non-developer about removing compatibility with older blender format...

Is there a tool that could convert all the old format files from the old blenders release to the current release?
If someone have a old project that he forgot to port the new version, it will be difficult to update it.

At some point, I really understand the point of removing theses codes and make the whole package smaller and more efficient. How about a separate tool that would do the job? Does it exist?

Question from a non-developer about removing compatibility with older blender format... Is there a tool that could convert all the old format files from the old blenders release to the current release? If someone have a old project that he forgot to port the new version, it will be difficult to update it. At some point, I really understand the point of removing theses codes and make the whole package smaller and more efficient. How about a separate tool that would do the job? Does it exist?

@christian-clavet Code which keeps compatibility with older Blender releases is hardly ever being removed. When it is removed, it means the feature is gone, and it having an external tool will not help you.

The code removed in this patch was for compatibility with files stored with development version of Blender from 2.80 cycle. Surely there is some possibility of existing .blend stored in that format, but chances of that are very low.

if you really run into such files, it is easier to open the file in Blender 3.6 and save and open in 4.0, than to maintain an external compatibility tool.

@christian-clavet Code which keeps compatibility with older Blender releases is hardly ever being removed. When it is removed, it means the feature is gone, and it having an external tool will not help you. The code removed in this patch was for compatibility with files stored with development version of Blender from 2.80 cycle. Surely there is some possibility of existing .blend stored in that format, but chances of that are very low. if you really run into such files, it is easier to open the file in Blender 3.6 and save and open in 4.0, than to maintain an external compatibility tool.

Thanks @Sergey ! I'll remember to get Blender 3.6 for such tasks.

Thanks @Sergey ! I'll remember to get Blender 3.6 for such tasks.

Can this be closed now?

Can this be closed now?
Author
Owner

Indeed. forgot this was still open.

Indeed. forgot this was still open.
Blender Bot added the
Status
Archived
label 2023-08-15 10:24:09 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#110918
No description provided.