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:
authorAntonioya <blendergit@gmail.com>2019-07-29 13:39:19 +0300
committerAntonioya <blendergit@gmail.com>2019-07-29 13:39:39 +0300
commit13f57237f24a4537bef9c080418c7837f6496a6c (patch)
tree6671bc4dd2310e7fcd9e6cf99710e7074b0e772e /release/scripts/startup/bl_ui/space_node.py
parent3ee246f614caaa8fa88b0c7813730fc35b7718e6 (diff)
Fix T67331: Annotations: Rename old grease pencil panels
These panels were using the old names, but now they are not grease pencil, but annotations. Also removed old Tools panel. This must be replaced with new Toolbar
Diffstat (limited to 'release/scripts/startup/bl_ui/space_node.py')
-rw-r--r--release/scripts/startup/bl_ui/space_node.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index 88b35fa4035..939102bc11b 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -25,7 +25,6 @@ from bpy.app.translations import contexts as i18n_contexts
from bl_ui.utils import PresetPanel
from bl_ui.properties_grease_pencil_common import (
AnnotationDataPanel,
- GreasePencilToolsPanel,
)
from bl_ui.space_toolsystem_common import (
ToolActivePanelHelper,
@@ -656,7 +655,7 @@ class NODE_UL_interface_sockets(bpy.types.UIList):
# Grease Pencil properties
-class NODE_PT_grease_pencil(AnnotationDataPanel, Panel):
+class NODE_PT_annotation(AnnotationDataPanel, Panel):
bl_space_type = 'NODE_EDITOR'
bl_region_type = 'UI'
bl_category = "View"
@@ -670,17 +669,6 @@ class NODE_PT_grease_pencil(AnnotationDataPanel, Panel):
return snode is not None and snode.node_tree is not None
-class NODE_PT_grease_pencil_tools(GreasePencilToolsPanel, Panel):
- bl_space_type = 'NODE_EDITOR'
- bl_region_type = 'UI'
- bl_category = "View"
- bl_options = {'DEFAULT_CLOSED'}
-
- # NOTE: this is just a wrapper around the generic GP tools panel
- # It contains access to some essential tools usually found only in
- # toolbar, but which may not necessarily be open
-
-
def node_draw_tree_view(_layout, _context):
pass
@@ -717,8 +705,7 @@ classes = (
NODE_PT_active_tool,
NODE_PT_backdrop,
NODE_PT_quality,
- NODE_PT_grease_pencil,
- NODE_PT_grease_pencil_tools,
+ NODE_PT_annotation,
NODE_UL_interface_sockets,
node_panel(EEVEE_MATERIAL_PT_settings),