Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-03-15 12:16:11 +0300
committerJacques Lucke <jacques@blender.org>2021-03-15 12:16:11 +0300
commit4ed208bcd82e912fa9a0da6137af6e87004e9365 (patch)
tree515ace29470dd5e2a785e3c18e482f54f30ff36e /source/blender/makesdna/DNA_space_types.h
parentb617b44419613ae87d64b5d4692515750c83b417 (diff)
Spreadsheet: support showing data from original/unevaluated object
There are two caveats of the current implementation which still need to be resolved in a separate step: * In theory the data on the original object can be editable in the spreadsheet. * If a complex object is in edit mode, and its original data is displayed, the drawing code can be slow, because the bmesh is converted to a mesh every time. The proper solution is to draw the data from the bmesh directly. This should become easier after an upcoming refactor. Ref T86141. Differential Revision: https://developer.blender.org/D10701
Diffstat (limited to 'source/blender/makesdna/DNA_space_types.h')
-rw-r--r--source/blender/makesdna/DNA_space_types.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index 9007d3b6cf4..dec3097a9ae 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -1865,8 +1865,10 @@ typedef struct SpaceSpreadsheet {
uint8_t geometry_component_type;
/* #AttributeDomain. */
uint8_t attribute_domain;
+ /* eSpaceSpreadsheet_ObjectContext. */
+ uint8_t object_eval_state;
- char _pad1[5];
+ char _pad1[4];
SpaceSpreadsheet_Runtime *runtime;
} SpaceSpreadsheet;
@@ -1877,6 +1879,11 @@ typedef enum eSpaceSpreadsheet_FilterFlag {
SPREADSHEET_FILTER_SELECTED_ONLY = (1 << 0),
} eSpaceSpreadsheet_FilterFlag;
+typedef enum eSpaceSpreadsheet_ObjectEvalState {
+ SPREADSHEET_OBJECT_EVAL_STATE_FINAL = 0,
+ SPREADSHEET_OBJECT_EVAL_STATE_ORIGINAL = 1,
+} eSpaceSpreadsheet_Context;
+
/* -------------------------------------------------------------------- */
/** \name Space Defines (eSpace_Type)
* \{ */