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:
authorDalai Felinto <dfelinto@gmail.com>2018-01-23 21:05:25 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-01-23 21:05:30 +0300
commite6064b412a6ed703d19028e2f05420af3bf45121 (patch)
treebe09c4138b5eb2fdfb6e7bc819f3fcb6dd390e9c /release/scripts/startup/bl_ui/properties_collection.py
parent6249c596099a4120a5c97a2169ea118eff4e9d31 (diff)
Fix object mode/edit mode panels not visible in collections
This was broken since e8c15e0ed15f83. When object_mode moved from workspace to window.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_collection.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_collection.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py
index cc6d606d27e..9a8e0a7562a 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -91,8 +91,8 @@ class COLLECTION_PT_object_mode_settings(CollectionButtonsPanel, Panel):
@classmethod
def poll(cls, context):
- workspace = context.workspace
- return workspace and hasattr(workspace, 'object_mode') and (workspace.object_mode == 'OBJECT')
+ window = context.window
+ return window and hasattr(window, 'object_mode') and (window.object_mode == 'OBJECT')
def draw(self, context):
layout = self.layout
@@ -110,8 +110,8 @@ class COLLECTION_PT_edit_mode_settings(CollectionButtonsPanel, Panel):
@classmethod
def poll(cls, context):
- workspace = context.workspace
- return workspace and hasattr(workspace, 'object_mode') and (workspace.object_mode == 'EDIT')
+ window = context.window
+ return window and hasattr(window, 'object_mode') and (window.object_mode == 'EDIT')
def draw(self, context):
layout = self.layout
@@ -134,8 +134,8 @@ class COLLECTION_PT_paint_weight_mode_settings(CollectionButtonsPanel, Panel):
@classmethod
def poll(cls, context):
- workspace = context.workspace
- return workspace and hasattr(workspace, 'object_mode') and (workspace.object_mode == 'WEIGHT_PAINT')
+ window = context.window
+ return window and hasattr(window, 'object_mode') and (window.object_mode == 'WEIGHT_PAINT')
def draw(self, context):
layout = self.layout
@@ -153,8 +153,8 @@ class COLLECTION_PT_paint_vertex_mode_settings(CollectionButtonsPanel, Panel):
@classmethod
def poll(cls, context):
- workspace = context.workspace
- return workspace and hasattr(workspace, 'object_mode') and (workspace.object_mode == 'VERTEX_PAINT')
+ window = context.window
+ return window and hasattr(window, 'object_mode') and (window.object_mode == 'VERTEX_PAINT')
def draw(self, context):
layout = self.layout