diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-15 12:16:11 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-15 12:16:11 +0300 |
commit | 4ed208bcd82e912fa9a0da6137af6e87004e9365 (patch) | |
tree | 515ace29470dd5e2a785e3c18e482f54f30ff36e /release/scripts | |
parent | b617b44419613ae87d64b5d4692515750c83b417 (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 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_spreadsheet.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_spreadsheet.py b/release/scripts/startup/bl_ui/space_spreadsheet.py index 1ba650fa096..a12fe68c9a5 100644 --- a/release/scripts/startup/bl_ui/space_spreadsheet.py +++ b/release/scripts/startup/bl_ui/space_spreadsheet.py @@ -31,7 +31,9 @@ class SPREADSHEET_HT_header(bpy.types.Header): pinned_id = space.pinned_id used_id = pinned_id if pinned_id else context.active_object - layout.prop(space, "geometry_component_type", text="") + layout.prop(space, "object_eval_state", text="") + if space.object_eval_state != "ORIGINAL": + layout.prop(space, "geometry_component_type", text="") layout.prop(space, "attribute_domain", text="") if used_id: |