diff options
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_ID.h | 60 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_shader_fx_types.h | 2 |
5 files changed, 34 insertions, 34 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index f06fcd7a727..122755a6491 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -133,7 +133,7 @@ enum { enum { /** This IDProp may be statically overridden. * Should only be used/be relevant for custom properties. */ - IDP_FLAG_OVERRIDABLE_STATIC = 1 << 0, + IDP_FLAG_OVERRIDABLE_LIBRARY = 1 << 0, /** This means the property is set but RNA will return false when checking * 'RNA_property_is_set', currently this is a runtime flag */ @@ -144,8 +144,8 @@ enum { /* Static ID override structs. */ -typedef struct IDOverrideStaticPropertyOperation { - struct IDOverrideStaticPropertyOperation *next, *prev; +typedef struct IDOverrideLibraryPropertyOperation { + struct IDOverrideLibraryPropertyOperation *next, *prev; /* Type of override. */ short operation; @@ -162,39 +162,39 @@ typedef struct IDOverrideStaticPropertyOperation { char *subitem_local_name; int subitem_reference_index; int subitem_local_index; -} IDOverrideStaticPropertyOperation; +} IDOverrideLibraryPropertyOperation; /* IDOverridePropertyOperation->operation. */ enum { /* Basic operations. */ - IDOVERRIDESTATIC_OP_NOOP = 0, /* Special value, forbids any overriding. */ + IDOVERRIDE_LIBRARY_OP_NOOP = 0, /* Special value, forbids any overriding. */ - IDOVERRIDESTATIC_OP_REPLACE = 1, /* Fully replace local value by reference one. */ + IDOVERRIDE_LIBRARY_OP_REPLACE = 1, /* Fully replace local value by reference one. */ /* Numeric-only operations. */ - IDOVERRIDESTATIC_OP_ADD = 101, /* Add local value to reference one. */ + IDOVERRIDE_LIBRARY_OP_ADD = 101, /* Add local value to reference one. */ /* Subtract local value from reference one (needed due to unsigned values etc.). */ - IDOVERRIDESTATIC_OP_SUBTRACT = 102, + IDOVERRIDE_LIBRARY_OP_SUBTRACT = 102, /* Multiply reference value by local one (more useful than diff for scales and the like). */ - IDOVERRIDESTATIC_OP_MULTIPLY = 103, + IDOVERRIDE_LIBRARY_OP_MULTIPLY = 103, /* Collection-only operations. */ - IDOVERRIDESTATIC_OP_INSERT_AFTER = 201, /* Insert after given reference's subitem. */ - IDOVERRIDESTATIC_OP_INSERT_BEFORE = 202, /* Insert before given reference's subitem. */ + IDOVERRIDE_LIBRARY_OP_INSERT_AFTER = 201, /* Insert after given reference's subitem. */ + IDOVERRIDE_LIBRARY_OP_INSERT_BEFORE = 202, /* Insert before given reference's subitem. */ /* We can add more if needed (move, delete, ...). */ }; /* IDOverridePropertyOperation->flag. */ enum { /** User cannot remove that override operation. */ - IDOVERRIDESTATIC_FLAG_MANDATORY = 1 << 0, + IDOVERRIDE_LIBRARY_FLAG_MANDATORY = 1 << 0, /** User cannot change that override operation. */ - IDOVERRIDESTATIC_FLAG_LOCKED = 1 << 1, + IDOVERRIDE_LIBRARY_FLAG_LOCKED = 1 << 1, }; /** A single overridden property, contain all operations on this one. */ -typedef struct IDOverrideStaticProperty { - struct IDOverrideStaticProperty *next, *prev; +typedef struct IDOverrideLibraryProperty { + struct IDOverrideLibraryProperty *next, *prev; /** * Path from ID to overridden property. @@ -204,10 +204,10 @@ typedef struct IDOverrideStaticProperty { /** List of overriding operations (IDOverridePropertyOperation) applied to this property. */ ListBase operations; -} IDOverrideStaticProperty; +} IDOverrideLibraryProperty; /* Main container for all overriding data info of a data-block. */ -typedef struct IDOverrideStatic { +typedef struct IDOverrideLibrary { /** Reference linked ID which this one overrides. */ struct ID *reference; /** List of IDOverrideProperty structs. */ @@ -220,10 +220,10 @@ typedef struct IDOverrideStatic { /* Temp ID storing extra override data (used for differential operations only currently). * Always NULL outside of read/write context. */ struct ID *storage; -} IDOverrideStatic; +} IDOverrideLibrary; -enum eStaticOverride_Flag { - STATICOVERRIDE_AUTO = 1 << 0, /* Allow automatic generation of overriding rules. */ +enum eOverrideLibrary_Flag { + OVERRIDE_LIBRARY_AUTO = 1 << 0, /* Allow automatic generation of overriding rules. */ }; /* watch it: Sequence has identical beginning. */ @@ -259,7 +259,7 @@ typedef struct ID { IDProperty *properties; /** Reference linked ID which this one overrides. */ - IDOverrideStatic *override_static; + IDOverrideLibrary *override_library; /** * Only set for data-blocks which are coming from copy-on-write, points to @@ -436,15 +436,15 @@ typedef enum ID_Type { #define ID_IS_LINKED(_id) (((ID *)(_id))->lib != NULL) -#define ID_IS_STATIC_OVERRIDE(_id) \ - (((ID *)(_id))->override_static != NULL && ((ID *)(_id))->override_static->reference != NULL) +#define ID_IS_OVERRIDE_LIBRARY(_id) \ + (((ID *)(_id))->override_library != NULL && ((ID *)(_id))->override_library->reference != NULL) -#define ID_IS_STATIC_OVERRIDE_TEMPLATE(_id) \ - (((ID *)(_id))->override_static != NULL && ((ID *)(_id))->override_static->reference == NULL) +#define ID_IS_OVERRIDE_LIBRARY_TEMPLATE(_id) \ + (((ID *)(_id))->override_library != NULL && ((ID *)(_id))->override_library->reference == NULL) -#define ID_IS_STATIC_OVERRIDE_AUTO(_id) \ - (!ID_IS_LINKED((_id)) && ID_IS_STATIC_OVERRIDE((_id)) && \ - (((ID *)(_id))->override_static->flag & STATICOVERRIDE_AUTO)) +#define ID_IS_OVERRIDE_LIBRARY_AUTO(_id) \ + (!ID_IS_LINKED((_id)) && ID_IS_OVERRIDE_LIBRARY((_id)) && \ + (((ID *)(_id))->override_library->flag & OVERRIDE_LIBRARY_AUTO)) /* No copy-on-write for these types. * Keep in sync with check_datablocks_copy_on_writable and deg_copy_on_write_is_needed */ @@ -509,9 +509,9 @@ enum { LIB_TAG_MISSING = 1 << 6, /* RESET_NEVER tag data-block as being up-to-date regarding its reference. */ - LIB_TAG_OVERRIDESTATIC_REFOK = 1 << 9, + LIB_TAG_OVERRIDE_LIBRARY_REFOK = 1 << 9, /* RESET_NEVER tag data-block as needing an auto-override execution, if enabled. */ - LIB_TAG_OVERRIDESTATIC_AUTOREFRESH = 1 << 17, + LIB_TAG_OVERRIDE_LIBRARY_AUTOREFRESH = 1 << 17, /* tag data-block has having an extra user. */ LIB_TAG_EXTRAUSER = 1 << 2, diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index c09ea400f4c..396030445f3 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -691,7 +691,7 @@ typedef enum eBConstraint_Flags { /* use bbone curve shape when calculating headtail values (also used by dependency graph!) */ CONSTRAINT_BBONE_SHAPE = (1 << 10), /* That constraint has been inserted in local override (i.e. it can be fully edited!). */ - CONSTRAINT_STATICOVERRIDE_LOCAL = (1 << 11), + CONSTRAINT_OVERRIDE_LIBRARY_LOCAL = (1 << 11), /* use full transformation (not just segment locations) - only set at runtime */ CONSTRAINT_BBONE_SHAPE_FULL = (1 << 12), } eBConstraint_Flags; diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index c28eff95fbc..8b756ff2937 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -60,7 +60,7 @@ typedef enum GpencilModifierMode { typedef enum { /* This modifier has been inserted in local override, and hence can be fully edited. */ - eGpencilModifierFlag_StaticOverride_Local = (1 << 0), + eGpencilModifierFlag_OverrideLibrary_Local = (1 << 0), } GpencilModifierFlag; typedef struct GpencilModifierData { diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index 37980fc5728..0d87ae09943 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -121,7 +121,7 @@ typedef struct ModifierData { typedef enum { /* This modifier has been inserted in local override, and hence can be fully edited. */ - eModifierFlag_StaticOverride_Local = (1 << 0), + eModifierFlag_OverrideLibrary_Local = (1 << 0), /* This modifier does not own its caches, but instead shares them with another modifier. */ eModifierFlag_SharedCaches = (1 << 1), } ModifierFlag; diff --git a/source/blender/makesdna/DNA_shader_fx_types.h b/source/blender/makesdna/DNA_shader_fx_types.h index c996b3bb829..6cda58a3279 100644 --- a/source/blender/makesdna/DNA_shader_fx_types.h +++ b/source/blender/makesdna/DNA_shader_fx_types.h @@ -54,7 +54,7 @@ typedef enum ShaderFxMode { typedef enum { /* This fx has been inserted in local override, and hence can be fully edited. */ - eShaderFxFlag_StaticOverride_Local = (1 << 0), + eShaderFxFlag_OverrideLibrary_Local = (1 << 0), } ShaderFxFlag; typedef struct ShaderFxData { |