Page MenuHome

free style does not work if there are nested collections
Confirmed, NormalPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: rB5be9ef417703
Worked: (newest version of Blender that worked as expected)

Short description of error
I'm not sure it can be called "bug", but if I apply freestyle to a collection (which I call "Lines") that contains others, it doesn't work

Exact steps for others to reproduce the error
I create objects to which I want to apply freestyle, I put them inside each of its collections. If I apply the freestyle option to the "Lines" collection it doesn't work. It only works if the objects are directly inside the "Lines" collection. It is a problem when I work on very complex scenes where it is useful to organize objects within many collections and I want to apply freestyle only to some of these collections by inserting them into a larger one (Lines) and leaving the others in another call " no lines "

Event Timeline

Falk David (filedescriptor) changed the task status from Needs Triage to Confirmed.Mon, Feb 8, 1:04 PM

I can confirm this issue on the latest 2.93.0 Alpha, branch: master, commit date: 2021-02-08 10:36, hash: rBecfd5360a187. The console shows an error:

Error: strokes set empty

which is triggered in blender/source/blender/freestyle/intern/stroke/StyleModule.h:

Operators::StrokesContainer *strokes_set = Operators::getStrokesSet();
if (strokes_set->empty()) {
  cerr << "Error: strokes set empty" << endl;
  Operators::reset();
  return NULL;
}