2011-02-17 21:48:12 +01:00
|
|
|
/*
|
2008-01-07 20:13:47 +01:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
2002-10-12 13:37:38 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2008-01-07 20:13:47 +01:00
|
|
|
* of the License, or (at your option) any later version.
|
2002-10-12 13:37:38 +02:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 14:34:04 +01:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-10-12 13:37:38 +02:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* The Original Code is: all of this file.
|
|
|
|
*
|
|
|
|
* Contributor(s): none yet.
|
|
|
|
*
|
2008-01-07 20:13:47 +01:00
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
2002-10-12 13:37:38 +02:00
|
|
|
*/
|
|
|
|
|
2011-02-17 21:48:12 +01:00
|
|
|
/** \file DNA_fileglobal_types.h
|
|
|
|
* \ingroup DNA
|
|
|
|
*/
|
|
|
|
|
2012-02-17 19:59:41 +01:00
|
|
|
#ifndef __DNA_FILEGLOBAL_TYPES_H__
|
|
|
|
#define __DNA_FILEGLOBAL_TYPES_H__
|
2011-12-30 08:25:49 +01:00
|
|
|
|
2008-12-19 01:50:21 +01:00
|
|
|
struct bScreen;
|
|
|
|
struct Scene;
|
|
|
|
|
2002-10-12 13:37:38 +02:00
|
|
|
/**
|
2012-03-03 12:45:08 +01:00
|
|
|
* FileGlobal stores a part of the current user-interface settings at
|
2002-10-12 13:37:38 +02:00
|
|
|
* the moment of saving, and the file-specific settings.
|
|
|
|
*/
|
|
|
|
typedef struct FileGlobal {
|
2006-11-27 11:43:00 +01:00
|
|
|
char subvstr[4]; /* needs to be here, for human fileformat recognition */
|
2015-01-19 15:07:12 +01:00
|
|
|
short subversion;
|
2006-11-27 11:43:00 +01:00
|
|
|
short minversion, minsubversion;
|
2015-01-19 15:07:12 +01:00
|
|
|
char pad[6];
|
2008-12-19 01:50:21 +01:00
|
|
|
struct bScreen *curscreen;
|
|
|
|
struct Scene *curscene;
|
2002-10-12 13:37:38 +02:00
|
|
|
int fileflags;
|
2003-07-21 21:41:07 +02:00
|
|
|
int globalf;
|
2013-11-18 13:13:23 +01:00
|
|
|
uint64_t build_commit_timestamp; /* commit timestamp from buildinfo */
|
|
|
|
char build_hash[16]; /* hash from buildinfo */
|
2009-10-20 15:58:53 +02:00
|
|
|
/* file path where this was saved, for recover */
|
2012-01-21 15:54:53 +01:00
|
|
|
char filename[1024]; /* 1024 = FILE_MAX */
|
2002-10-12 13:37:38 +02:00
|
|
|
} FileGlobal;
|
|
|
|
|
2006-11-26 22:17:15 +01:00
|
|
|
|
|
|
|
/* minversion: in file, the oldest past blender version you can use compliant */
|
|
|
|
/* example: if in 2.43 the meshes lose mesh data, minversion is 2.43 then too */
|
|
|
|
/* or: in 2.42, subversion 1, same as above, minversion then is 2.42, min subversion 1 */
|
|
|
|
/* (defines for version are in the BKE_blender.h file, for historic reasons) */
|
|
|
|
|
|
|
|
|
2002-10-12 13:37:38 +02:00
|
|
|
#endif
|
2002-10-30 03:07:20 +01:00
|
|
|
|