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:
authorNathan Craddock <nzcraddock@gmail.com>2020-08-06 06:32:43 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-08-06 06:32:43 +0300
commita6f4dbd6cb8fb76be59b89ae40b0aeeec5d14eae (patch)
tree05641699254be2ef1b704ec2b310c7d68f2c34cc /source/blender/editors/space_outliner/outliner_draw.c
parent214223e864217c215f9e07327ef63faf902fbabc (diff)
Fix: Wrong offset for collection rename button
After moving the collection exclude checkbox to the restrict columns the rename field drew with an additional offset. Remove the offset.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 966ee81cc33..67dca51ac6c 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -1851,7 +1851,6 @@ static void outliner_buttons(const bContext *C,
const float restrict_column_width,
TreeElement *te)
{
- SpaceOutliner *soops = CTX_wm_space_outliner(C);
uiBut *bt;
TreeStoreElem *tselem;
int spx, dx, len;
@@ -1877,10 +1876,6 @@ static void outliner_buttons(const bContext *C,
}
spx = te->xs + 1.8f * UI_UNIT_X;
- if ((tselem->type == TSE_LAYER_COLLECTION) &&
- (soops->show_restrict_flags & SO_RESTRICT_ENABLE)) {
- spx += UI_UNIT_X;
- }
dx = region->v2d.cur.xmax - (spx + restrict_column_width + 0.2f * UI_UNIT_X);
bt = uiDefBut(block,