Preferences: disable changing 'U' on blend file versioning
Would have prevented T71612
This commit is contained in:
@@ -159,6 +159,9 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
/* Make preferences read-only. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
/**
|
||||
* READ
|
||||
* ====
|
||||
|
||||
@@ -84,6 +84,9 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
/* Make preferences read-only, use versioning_userdef.c. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
/* 2.50 patch */
|
||||
static void area_add_header_region(ScrArea *sa, ListBase *lb)
|
||||
{
|
||||
|
||||
@@ -79,6 +79,9 @@
|
||||
|
||||
#include "readfile.h"
|
||||
|
||||
/* Make preferences read-only, use versioning_userdef.c. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
static void do_versions_nodetree_image_default_alpha_output(bNodeTree *ntree)
|
||||
{
|
||||
bNode *node;
|
||||
|
||||
@@ -81,6 +81,9 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
/* Make preferences read-only, use versioning_userdef.c. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
/* ************************************************** */
|
||||
/* GP Palettes API (Deprecated) */
|
||||
|
||||
|
||||
@@ -96,6 +96,9 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
/* Make preferences read-only, use versioning_userdef.c. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
static bScreen *screen_parent_find(const bScreen *screen)
|
||||
{
|
||||
/* Can avoid lookup if screen state isn't maximized/full
|
||||
|
||||
@@ -56,6 +56,9 @@
|
||||
|
||||
#include "BLO_readfile.h"
|
||||
|
||||
/* Make preferences read-only, use versioning_userdef.c. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
/**
|
||||
* Rename if the ID doesn't exist.
|
||||
*/
|
||||
|
||||
@@ -89,6 +89,9 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
/* Make preferences read-only, use versioning_userdef.c. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
static void vcol_to_fcol(Mesh *me)
|
||||
{
|
||||
MFace *mface;
|
||||
|
||||
@@ -181,6 +181,9 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
/* Make preferences read-only. */
|
||||
#define U (*((const UserDef *)&U))
|
||||
|
||||
/* ********* my write, buffered writing with minimum size chunks ************ */
|
||||
|
||||
/* Use optimal allocation since blocks of this size are kept in memory for undo. */
|
||||
|
||||
Reference in New Issue
Block a user