From 4ed208bcd82e912fa9a0da6137af6e87004e9365 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 15 Mar 2021 10:16:11 +0100 Subject: 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 --- release/scripts/startup/bl_ui/space_spreadsheet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'release/scripts/startup/bl_ui') 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: -- cgit v1.2.3