[Bf-blender-cvs] [3a10b9d4bcf] greasepencil-object: GPencil: Use Enabled instead of Active to disable panel
Antonio Vazquez
noreply at git.blender.org
Wed Apr 22 16:50:08 CEST 2020
Commit: 3a10b9d4bcfeba508c0665b562831b4f266cf681
Author: Antonio Vazquez
Date: Wed Apr 22 16:50:02 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rB3a10b9d4bcfeba508c0665b562831b4f266cf681
GPencil: Use Enabled instead of Active to disable panel
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index aa9ffae58e8..1eb51fc5120 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1617,7 +1617,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_random(View3DPanel, Panel):
row.label(text=self.bl_label)
col = layout.column()
- col.active = gp_settings.use_settings_random
+ col.enabled = gp_settings.use_settings_random
row = col.row(align=True)
row.prop(gp_settings, "random_pressure", text="Pressure", slider=True)
More information about the Bf-blender-cvs
mailing list