diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-05 19:20:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-05 19:21:14 +0300 |
commit | 1c24c04e6023f2d2a328dfcdc9f86cd381d029a3 (patch) | |
tree | 7a5af59ce078cb66fb17ec33cf111ffc8d5fb328 /release/scripts/startup/bl_ui/properties_data_bone.py | |
parent | 57329304b061efe756e3a4ce1b828e9a7c7f7030 (diff) |
Remove workspace object mode, reverts changes w/ 2.8
This caused too many problems syncing object modes
with multiple objects/windows/workspaces, see: D3130 for details.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_bone.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_bone.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_bone.py b/release/scripts/startup/bl_ui/properties_data_bone.py index e8f290772d8..f0ef0032059 100644 --- a/release/scripts/startup/bl_ui/properties_data_bone.py +++ b/release/scripts/startup/bl_ui/properties_data_bone.py @@ -58,8 +58,7 @@ class BONE_PT_transform(BoneButtonsPanel, Panel): return True ob = context.object - workspace = context.workspace - return ob and workspace.object_mode == 'POSE' and context.bone + return ob and ob.mode == 'POSE' and context.bone def draw(self, context): layout = self.layout @@ -111,8 +110,7 @@ class BONE_PT_transform_locks(BoneButtonsPanel, Panel): @classmethod def poll(cls, context): ob = context.object - workspace = context.workspace - return ob and workspace.object_mode == 'POSE' and context.bone + return ob and ob.mode == 'POSE' and context.bone def draw(self, context): layout = self.layout @@ -313,8 +311,7 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel): @classmethod def poll(cls, context): ob = context.object - workspace = context.workspace - return ob and workspace.object_mode == 'POSE' and context.bone + return ob and ob.mode == 'POSE' and context.bone def draw(self, context): layout = self.layout @@ -442,8 +439,7 @@ class BONE_PT_custom_props(BoneButtonsPanel, PropertyPanel, Panel): @property def _context_path(self): obj = bpy.context.object - workspace = context.workspace - if obj and workspace.object_mode == 'POSE': + if obj and obj.mode == 'POSE': return "active_pose_bone" else: return "active_bone" |