Cannot select anything in front view

Discussions about the development of the TechDraw workbench
User avatar
babaroga
Posts: 81
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Cannot select anything in front view

Postby babaroga » Sun Apr 07, 2019 6:48 pm

Hello,

Since commits from 6th April, I cannot make any dimension on Front view in drawing.
Problem is that I am unable to select any line, point or circle on Front view. When I hover over line, point or circle it turns green but it does not stay selected. However, it is possible to make baloon.

On all other views (left, right, top, axonometric...), details and sections it works as expected.

Front view have red lock icon on it and I cnnot unlock it couse this property is grayed out.

Steps to reproduce:
1. Create new page in TechDraw
2. Select some eg. Body
3. Press "Insert multiple lin ked views..."
4. Choose eg. top and right view
5. Try to make any dimension in front view or creat e a hatch

Did anyone else faced same behaviour?

Code: Select all

OS: Manjaro Linux (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16436 (Git)
Build type: Release
Branch: master
Hash: 8e457a669435783bea770ce8aa5e60c032603691
Python version: 3.7.3
Qt version: 5.12.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
User avatar
wandererfan
Posts: 3325
Joined: Tue Nov 06, 2012 5:42 pm

Re: Cannot select anything in front view

Postby wandererfan » Sun Apr 07, 2019 11:58 pm

babaroga wrote:
Sun Apr 07, 2019 6:48 pm
Since commits from 6th April, I cannot make any dimension on Front view in drawing.
Confirmed on:
OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16442 (Git)
Build type: debug
Branch: FrontViewDims
Hash: 2935cbb71aa68f257c1d3f70b030e5beb8461b3d
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

The trouble looks older than the April 6 commits.
Front view have red lock icon on it and I cnnot unlock it couse this property is grayed out.
Front view is supposed to stay locked to the ProjGroup. Otherwise the view layout gets messed up. Not related to the selection issue.
User avatar
babaroga
Posts: 81
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Cannot select anything in front view

Postby babaroga » Mon Apr 08, 2019 6:47 am

The trouble looks older than the April 6 commits.
As far as I can remember, when baloons was introduced, there was no selection issues.
User avatar
wandererfan
Posts: 3325
Joined: Tue Nov 06, 2012 5:42 pm

Re: Cannot select anything in front view

Postby wandererfan » Mon Apr 08, 2019 11:57 am

babaroga wrote:
Mon Apr 08, 2019 6:47 am
As far as I can remember, when baloons was introduced, there was no selection issues.
Compiled the master branch before balloons were added, selection works fine. Compiled the master branch after balloons, selection doesn't work in Front view. Looks like Balloon is stealing mouse events meant for Front.
fjullien
Posts: 57
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: Cannot select anything in front view

Postby fjullien » Mon Apr 08, 2019 7:33 pm

Looks like it's comming from this git commit 2551c1741900c03e55192f519d8e7b6f90867dfc

I hope @wandererfan can help here to get this fixed as fast as possible.

Franck.
fjullien
Posts: 57
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: Cannot select anything in front view

Postby fjullien » Mon Apr 08, 2019 8:31 pm

wandererfan wrote:
Mon Apr 08, 2019 11:57 am
Looks like Balloon is stealing mouse events meant for Front.
If it can help you wandererfan, this fix this problem:
diff.png
diff.png (78.1 KiB) Viewed 422 times
Not sure it is a good solution.

Franck.
User avatar
wandererfan
Posts: 3325
Joined: Tue Nov 06, 2012 5:42 pm

Re: Cannot select anything in front view

Postby wandererfan » Tue Apr 09, 2019 1:18 am

fjullien wrote:
Mon Apr 08, 2019 8:31 pm
If it can help you wandererfan, this fix this problem:
Thanks Franck, I'll give it a try. ProjectionGroup always throws sand into the gearbox.
User avatar
wandererfan
Posts: 3325
Joined: Tue Nov 06, 2012 5:42 pm

Re: Cannot select anything in front view

Postby wandererfan » Wed Apr 10, 2019 11:15 am

fjullien wrote:
Mon Apr 08, 2019 8:31 pm
If it can help you wandererfan, this fix this problem:
Thanks, Franck. I've implemented your solution as it fixes the immediate problem. git commit e13747c3c6

There's something still not quite right, or maybe my mouse pad is getting ready to fail. Have to keep an eye on this.
fjullien
Posts: 57
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: Cannot select anything in front view

Postby fjullien » Wed Apr 10, 2019 11:38 am

Ok great. But I agree, it might not be the best fix.
I'll work on fixing balloon with regard to what you pointed out in your private message.