Bring back per-viewport localview. This is based on Blender 2.79.
We have a limit of 16 different local view viewports.
TODOs:
- Hack to make sure lights are always visible.
- Expose this to RNA, so Cycles/Python can support this as well.
- More testing.
Differential D3973
Local View Authored by Dalai Felinto (dfelinto) on Nov 21 2018, 3:08 AM.
Details Bring back per-viewport localview. This is based on Blender 2.79. TODOs:
Diff Detail
Event TimelineComment Actions This seems generally fine. Some missing things to make operators respect local view:
Comment Actions Addressed all the issues mentioned in review.
Comment Actions More fixes. Some of them were stashed away (i.e., not resetting shading), but most of them For now I'm assuming the selectability flag does not affect whether the object That said the biggest TODO here seems to be multi-editing. Up to debate whether Comment Actions The operator needs to be added back in the View menu still. I think that is the intended design. If selectability is per viewport there isn't really any other option anyway.
What's the problem with multi-editing? I have no objection to committing this though. Comment Actions
Done
It is tackled now. Basically all the object iterators need to be aware of the viewport. An example that would yield strange results and sometimes crash before:
For the records the cleanups you mention (util functions for the visibility tests) were not done here. But that is cleanup and can always be done after the merge. Comment Actions Summoning @Campbell Barton (campbellbarton) here, in case he wants to take a look at it. Campbell I'm changing all the object iterators to take into account v3d. Comment Actions Looked over the patch & tested functionality, design looks good - think any details relating to this that come up could be handled once in 2.8 (although I didn't see any). | |||||||||||||||||||||||||||||||||||||||||||||||||