Welcome to mirror list, hosted at ThFree Co, Russian Federation.

OrientedLineRep.cpp « scene_graph « intern « freestyle « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 04a1492fdcc5a81ea90509b65b7c973eba53b8d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-or-later */

/** \file
 * \ingroup freestyle
 * \brief Class to display an oriented line representation.
 */

#include "OrientedLineRep.h"

#include "../system/BaseObject.h"

namespace Freestyle {

void OrientedLineRep::accept(SceneVisitor &v)
{
  Rep::accept(v);  // NOLINT(bugprone-parent-virtual-call), this seems to intentionally *not* call
                   // the parent class' accept() function, but rather the grandparent's. The
                   // v.visitLineRep(*this); call below is actually what the parent class would do.
  if (!frs_material()) {
    v.visitOrientedLineRep(*this);
  }
  else {
    v.visitLineRep(*this);
  }
}

} /* namespace Freestyle */