[Bf-blender-cvs] [6eaaa9c3d31] master: Fix T62507: Removing Annotation layers removes layers option

Antonioya noreply at git.blender.org
Tue Mar 12 19:49:59 CET 2019


Commit: 6eaaa9c3d313358428832e26c8d62ade3ea96568
Author: Antonioya
Date:   Tue Mar 12 19:49:46 2019 +0100
Branches: master
https://developer.blender.org/rB6eaaa9c3d313358428832e26c8d62ade3ea96568

Fix T62507: Removing Annotation layers removes layers option

Now, when the layer is removed, the Annotation title is removed too to get the same situation when you start using annotations.

===================================================================

M	release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 242c90635df..0784f736805 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -148,9 +148,9 @@ class _defs_annotate:
             else:
                 text = ""
 
-            layout.label(text="Annotation:")
             gpl = context.active_gpencil_layer
             if gpl is not None:
+                layout.label(text="Annotation:")
                 sub = layout.row(align=True)
                 sub.ui_units_x = 8



More information about the Bf-blender-cvs mailing list