Fixed current source selection behavior with swich to appearance view.

This commit is contained in:
brunoherbelin
2020-11-21 21:29:08 +01:00
parent bb231868b4
commit 59087f9198
5 changed files with 216 additions and 88 deletions

View File

@@ -26,7 +26,7 @@ void DrawVisitor::loop(int num, glm::mat4 transform)
void DrawVisitor::visit(Node &n)
{
// draw the target
if ( n.id() == target_->id()) {
if ( target_ && n.id() == target_->id()) {
for (int i = 0; i < num_duplicat_; ++i) {
// draw multiple copies if requested