[Bf-blender-cvs] [6ad75949b95] blender-v2.90-release: Fix: Wrong outliner restrict column for gpencil layer hide
Nathan Craddock
noreply at git.blender.org
Tue Jul 28 05:09:07 CEST 2020
Commit: 6ad75949b952d7a7911ae91ebc46006203c0da4f
Author: Nathan Craddock
Date: Mon Jul 27 20:07:55 2020 -0600
Branches: blender-v2.90-release
https://developer.blender.org/rB6ad75949b952d7a7911ae91ebc46006203c0da4f
Fix: Wrong outliner restrict column for gpencil layer hide
The icon was drawing in the viewport disable rather than the viewport
hide column. Unreported.
===================================================================
M source/blender/editors/space_outliner/outliner_draw.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 47215f3ccda..a45b415b629 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -1376,13 +1376,13 @@ static void outliner_draw_restrictbuts(uiBlock *block,
ID *id = tselem->id;
bGPDlayer *gpl = (bGPDlayer *)te->directdata;
- if (soops->show_restrict_flags & SO_RESTRICT_VIEWPORT) {
+ if (soops->show_restrict_flags & SO_RESTRICT_HIDE) {
bt = uiDefIconButBitS(block,
UI_BTYPE_ICON_TOGGLE,
GP_LAYER_HIDE,
0,
ICON_HIDE_OFF,
- (int)(region->v2d.cur.xmax - restrict_offsets.viewport),
+ (int)(region->v2d.cur.xmax - restrict_offsets.hide),
te->ys,
UI_UNIT_X,
UI_UNIT_Y,
More information about the Bf-blender-cvs
mailing list