Measureit 1.7.0 in Blender2.79b not shown when in "/" (local) mode #54585

Closed
opened 2018-04-12 19:49:49 +02:00 by Ako Zoom · 23 comments

in version 2.79b,
addon measure it (V 1.7.0) for linux .. ?...
doesnt show (appear) anymore when using the "/" =LOCAL switch mode to show only selected meshes.
also i get back old files .. and compare by ok non-ok then try compare for the last file which was "measureit_main.py"
then i just modify back some lines...

in file joined:
(the green ones replaced by the new lines ("and" is ok) - then the blue lines on right is the new file where not included in old files
here then i cant do anymore correction

cheers !
not seen anything about that... so i put that here ...

author: "Antonio Vazquez (antonioya)"
Capt_error_measureit2.79b.png

in version **2.79b**, addon measure it (V 1.7.0) for linux .. ?... doesnt show (appear) anymore when using the "/" =**LOCAL** switch mode to show only selected meshes. also i get back old files .. and compare by ok non-ok then try compare for the last file which was "measureit_main.py" then i just modify back some lines... **in file joined:** (the green ones replaced by the new lines ("and" is ok) - then the blue lines on right is the new file where not included in old files here then i cant do anymore correction cheers ! not seen anything about that... so i put that here ... author: "Antonio Vazquez (antonioya)" ![Capt_error_measureit2.79b.png](https://archive.blender.org/developer/F2670975/Capt_error_measureit2.79b.png)
Author

Added subscribers: @AkoZ, @antoniov

Added subscribers: @AkoZ, @antoniov
No description provided.
Member

Added subscriber: @nBurn

Added subscriber: @nBurn
Member

Which version of MeasureIt? I can't reproduce the bug with MeasureIt 1.7.0 (included with 2.79b). For me the measurements show in both "Local" and "Global" modes (what "Numpad /" toggles).
meas_glob_loc.png

Which version of MeasureIt? I can't reproduce the bug with MeasureIt 1.7.0 (included with 2.79b). For me the measurements show in both "Local" and "Global" modes (what "Numpad /" toggles). ![meas_glob_loc.png](https://archive.blender.org/developer/F2673175/meas_glob_loc.png)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

I made a change here in dc6704ab4 but also cannot reproduce, could you provide a simple .blend file and exact steps to reproduce the issue?

Marking as incomplete for now...

I made a change here in dc6704ab4 but also cannot reproduce, could you provide a simple .blend file and exact steps to reproduce the issue? Marking as incomplete for now...

I have tested with 2.79b and cannot reproduce the bug either.

I have tested with 2.79b and cannot reproduce the bug either.
Author

ok i 'll send 3files ..
for now ..measureit V 1.7.0
i'm on linux version xubuntu ...
.. on last file .. i've sent the modified file of measureit.main.py... where the bug is shown (about if .. )

  • on one pict : mode local where NO measureit shown...: capt_measureit2.79b_localMODE without measureit.png
  • other pict: mode global: measureit OK: capt_measureit2.79b_globalMODE with measureit.png
  • here a . blend file where the bug is .. (?) for me problem_measureit.blend
ok i 'll send 3files .. for now ..measureit V 1.7.0 i'm on linux version xubuntu ... .. on last file .. i've sent the modified file of measureit.main.py... where the bug is shown (about if .. ) - on one pict : mode local where NO measureit shown...: ![capt_measureit2.79b_localMODE without measureit.png](https://archive.blender.org/developer/F2676971/capt_measureit2.79b_localMODE_without_measureit.png) - other pict: mode global: measureit OK: ![capt_measureit2.79b_globalMODE with measureit.png](https://archive.blender.org/developer/F2676995/capt_measureit2.79b_globalMODE_with_measureit.png) - here a . blend file where the bug is .. (?) for me [problem_measureit.blend](https://archive.blender.org/developer/F2676977/problem_measureit.blend)
Author

OK .. i reproduce the Exact steps for others to reproduce the error
for the https://developer.blender.org/rBAdc6704ab42317256a0cad14728f275ee542f9904 BUG

MeasureIt Layer bug.blend522 KB

  Turn on measurements with Toolshelf> Display tab> MeasureIt Tools panel> Show.
  The measurement should currently be visible. Press '2' to switch to layer 2. The measurements disappear.

and it's OK .. measureit is right in local too!!: i mean : in this file tested for BUG i got NO bug !
layer 1 or 2 changes nothing, i can see measureit..,even in local mode
measureit_layerBUG_T53766reproduced_NO pb_even.inlocalMODE.png
Also it seems it's my file .. something is corrupted there .. ;) !!
yep ! ..i also try with a new file: just a cube and all is ok
my file is a complete hard and old version pack from monthes .. till today, saved and saved.

OK .. i reproduce the Exact steps for others to reproduce the error for the https://developer.blender.org/rBAdc6704ab42317256a0cad14728f275ee542f9904 BUG MeasureIt Layer bug.blend522 KB ``` Turn on measurements with Toolshelf> Display tab> MeasureIt Tools panel> Show. The measurement should currently be visible. Press '2' to switch to layer 2. The measurements disappear. ``` and it's OK .. measureit is right in local too!!: i mean : in this file tested for BUG i got NO bug ! layer 1 or 2 changes nothing, i can see measureit..,even in local mode ![measureit_layerBUG_T53766reproduced_NO pb_even.inlocalMODE.png](https://archive.blender.org/developer/F2677282/measureit_layerBUG_T53766reproduced_NO_pb_even.inlocalMODE.png) Also it seems it's my file .. something is corrupted there .. ;) !! yep ! ..**i also try with a new file**: just a cube and all is **ok** my file is a complete hard and old version pack from monthes .. till today, saved and saved.
Author

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Ako Zoom self-assigned this 2018-04-13 13:36:27 +02:00
Author

As i see no bug with new file .. i go more in my own file:
also i found that with the layer management..
in local mode,
the layer of the object is OFF, even object is seen .. also .. measureit stays OFF as its layer !
resolved_measureit_BUG_layerOFF.png
BUT there is only 1 object ,and as i return bck to my entire file, there are more objects to be hidden.

may be said: when an object is in local MODE,
measureit must be in a same layers state as its measured object.
its layer may be forced turned ON and not OFF .. ;) ?

cheers to help ! thanK you all for the great work !!

As i see no bug with new file .. i go more in my own file: also i found that with the layer management.. ***in local mode***, the layer of the object is OFF, even object is seen .. also .. measureit stays OFF as its layer ! ![resolved_measureit_BUG_layerOFF.png](https://archive.blender.org/developer/F2677379/resolved_measureit_BUG_layerOFF.png) **BUT** there is only 1 object ,and as i return bck to my entire file, there are more objects to be hidden. may be said: when an object is in local MODE, **measureit must be in a same layers state as its measured object**. its layer may be forced turned ON and not OFF .. ;) ? cheers to help ! thanK you all for the great work !!
Author

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Ako Zoom reopened this issue 2018-04-13 13:48:43 +02:00
Author

BUT .. as i go back to the entire file ! .. i find that when i make my object layer to ON to see measureit...
THEN i got ALL the layer objects i've hidden... yep ok i got measureit but not in the "only" way which is to see measureit of the parts objects and not all...
Also it is till a bug for me ...
SO i go back with my corrected file (not added the new lines of V1.7.0)
and till there is no bug with the MeasureIt Layer bug.blend522 KB when i change layer 1 to 2 .. !!
may we find a solution .. it seems to be a layer management problem

BUT .. as i go back to the entire file ! .. i find that when i make my object layer to ON to see measureit... THEN i got ALL the layer objects i've hidden... yep ok i got measureit but not in the "only" way which is to see measureit of the parts objects and not all... Also it is till a bug for me ... SO i go back with my corrected file (not added the new lines of V1.7.0) and till there is no bug with the MeasureIt Layer bug.blend522 KB when i change layer 1 to 2 .. !! may we find a solution .. it seems to be **a layer management problem**
Ako Zoom was unassigned by Philipp Oeser 2018-04-13 13:59:58 +02:00
Philipp Oeser self-assigned this 2018-04-13 13:59:58 +02:00
Member

actually this has to do with this fellow
#54585.png

If you use view local layers and additionally go to local view it fails with the newest version, will check in a bit...

actually this has to do with this fellow ![#54585.png](https://archive.blender.org/developer/F2677521/T54585.png) If you use view local layers and additionally go to local view it fails with the newest version, will check in a bit...
Philipp Oeser removed their assignment 2018-04-13 15:12:58 +02:00
nBurn was assigned by Philipp Oeser 2018-04-13 15:12:58 +02:00
Member

@nBurn : thats actually caused by 8ca82b7d [not dc6704ab4], mind having a look?

@nBurn : thats actually caused by 8ca82b7d [not dc6704ab4], mind having a look?
Author

Y .. 8ca82b7d just as Capt_error_measureit2.79b.png

Y .. [**8ca82b7d**](https://developer.blender.org/rBA8ca82b7d94d53b643ac20ed1632b46429abc221b) just as ![Capt_error_measureit2.79b.png](https://archive.blender.org/developer/F2670975/Capt_error_measureit2.79b.png)
Member

@lichtwerk, I checked and AkoZ was correct, it's a layer management problem. Part of the problem is Blender's weird "view-dependent layers" option. For some reason Blender sets any layers (in "context.space_data.layers") attached to the current view to "False" if you disable the "Scene Layer Lock" option and switch to Local View. That is what prevents any measurements from showing up. I don't think rolling back 8ca82b7d or adding a quick fix like:
"if True in bpy.context.space_data.layers do old_behaviour"
are good options as both of those brings back the view layer inconsistency bug which is (IMO) worse than this Global / Local issue.

I think I know how to fix this, but it might be a while before I can implement it as it could require a lot of changes to MeasureIt's visibility checks. MeasureIt's drawing code needs to be changed so it only displays measurements for active/selected mesh object(s) when in "local" view instead of using visibility layers. Using layers to determine what to draw when in local view can cause this to happen (I'm surprised no one reported this bug before):

more_measureit_weirdness.png

@lichtwerk, I checked and AkoZ was correct, it's a layer management problem. Part of the problem is Blender's weird "view-dependent layers" option. For some reason Blender sets any layers (in "context.space_data.layers") attached to the current view to "False" if you disable the "Scene Layer Lock" option and switch to Local View. That is what prevents any measurements from showing up. I don't think rolling back 8ca82b7d or adding a quick fix like: "if True in bpy.context.space_data.layers do old_behaviour" are good options as both of those brings back the view layer inconsistency bug which is (IMO) worse than this Global / Local issue. I think I know how to fix this, but it might be a while before I can implement it as it could require a lot of changes to MeasureIt's visibility checks. MeasureIt's drawing code needs to be changed so it only displays measurements for active/selected mesh object(s) when in "local" view instead of using visibility layers. Using layers to determine what to draw when in local view can cause this to happen (I'm surprised no one reported this bug before): ![more_measureit_weirdness.png](https://archive.blender.org/developer/F2688403/more_measureit_weirdness.png)
Member

OK, thanx for checking back. Agree with your analysis (was just pointing out that this has nothing to do with dc6704ab4 and reverting 8ca82b7d would actually fix this report -- but of course reintroduce other issues).
We'll just let this open then see how to fix both Global/Local AND view layers when time comes... OK?

OK, thanx for checking back. Agree with your analysis (was just pointing out that this has nothing to do with dc6704ab4 and reverting 8ca82b7d would actually fix **this** report -- but of course reintroduce other issues). We'll just let this open then see how to fix both Global/Local **AND** view layers when time comes... OK?
Author

In fact, i used the LOCAL way to get my cotation seen on 1 or 2 objects at once.
As those obects are on the same layer, the way you prescribe is to put the other objects on a stand-by layer
till i get the print of my object cotation then one by changing of layer for each object...
a bit longer workflow than not to see as old version ( and as i dont see any pb about layers for measureit except this one ;) )

Thank you guys for the search and code..
then i found an other bug about .. manipulator !! worse !

In fact, i used the LOCAL way to get my cotation seen on 1 or 2 objects at once. As those obects are on the same layer, the way you prescribe is to put the other objects on a stand-by layer till i get the print of my object cotation then one by changing of layer for each object... a bit longer workflow than not to see as old version ( and as i dont see any pb about layers for measureit except this one ;) ) Thank you guys for the search and code.. *then i found an other bug about .. manipulator !! worse !*
Member

@lichtwerk I was not entirely sure if you were suggesting a rollback or not, but Ako was.

I am also not sure if we will need to leave this open long, I already have a fix working on my local repo (there was not nearly as much code needing to be changed as I first thought). I want to do some more tests, but if all goes well I will commit my fix.

@lichtwerk I was not entirely sure if you were suggesting a rollback or not, but Ako was. I am also not sure if we will need to leave this open long, I already have a fix working on my local repo (there was not nearly as much code needing to be changed as I first thought). I want to do some more tests, but if all goes well I will commit my fix.

This issue was referenced by 41e13ed7ad

This issue was referenced by 41e13ed7add7c9da0bee0815c22c284c0731a96b
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
nBurn closed this issue 2018-04-14 22:58:43 +02:00
Author

Yeah !! all right ! **HERE measureit_main.py**the good file to replace for 2.79b (1.7.0-> 1.7.1 measureit version) tabbed and spaces (for clean python writing).**Thank you so much **for the fast (easy? / competitive) resolution for local measureit viewing !

Yeah !! all right ! **[HERE measureit_main.py](https://developer.blender.org/diffusion/BA/browse/master/measureit/measureit_main.py)**the good file to replace for 2.79b (1.7.0-> 1.7.1 measureit version) tabbed and spaces (for clean python writing).**Thank you so much **for the fast (easy? / competitive) resolution for local measureit viewing !
Ako Zoom changed title from Measureit 2.79b not shown when in "/" mode (hide other unselected) to Measureit 2.79b not shown when in "/" (local) mode 2018-04-24 11:51:15 +02:00
Ako Zoom changed title from Measureit 2.79b not shown when in "/" (local) mode to Measureit 1.7.0 in Blender2.79b not shown when in "/" (local) mode 2018-04-24 11:51:58 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#54585
No description provided.