Blender V5.0
versioning_xxx_template.cc File Reference
#include "DNA_ID.h"
#include "BLI_sys_types.h"
#include "BKE_main.hh"
#include "readfile.hh"
#include "versioning_common.hh"

Go to the source code of this file.

Macros

#define DNA_DEPRECATED_ALLOW

Functions

void do_versions_after_linking_xxx (FileData *, Main *)
void blo_do_versions_xxx (FileData *, Library *, Main *)

Macro Definition Documentation

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

This file is a template to use as base when switching to a new version of Blender.

DO NOT add this file to CMakeList.txt.

When initializing a new version of Blender in main, after branching out the current one into its release branch:

  • Copy that file and rename it to the proper new version number (e.g. versioning_501.cc).
  • Rename the two functions below by replacing the xxx with the matching new version number.
  • Add the new file to CMakeList.txt
  • Add matching calls in do_versions_after_linking and do_versions, in readfile.cc.

Definition at line 22 of file versioning_xxx_template.cc.

Function Documentation

◆ blo_do_versions_xxx()

void blo_do_versions_xxx ( FileData * ,
Library * ,
Main *  )

Always bump subversion in BKE_blender_version.h when adding versioning code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.

Note
Keep this message at the bottom of the function.

Definition at line 47 of file versioning_xxx_template.cc.

◆ do_versions_after_linking_xxx()

void do_versions_after_linking_xxx ( FileData * ,
Main *  )

Always bump subversion in BKE_blender_version.h when adding versioning code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.

Note
Keep this message at the bottom of the function.

Definition at line 37 of file versioning_xxx_template.cc.