83 |
83 |
84 if (not types.contains (type)) |
84 if (not types.contains (type)) |
85 continue; |
85 continue; |
86 |
86 |
87 // For subfiles, type check is not enough, we check the name of the document as well. |
87 // For subfiles, type check is not enough, we check the name of the document as well. |
88 if (type == OBJ_SubfileReference |
88 if (type == LDObjectType::SubfileReference |
89 and not subfilenames.contains (static_cast<LDSubfileReference*> (obj)->fileInfo()->name())) |
89 and not subfilenames.contains (static_cast<LDSubfileReference*> (obj)->fileInfo()->name())) |
90 { |
90 { |
91 continue; |
91 continue; |
92 } |
92 } |
93 |
93 |
160 m_window->renderer()->refresh(); |
160 m_window->renderer()->refresh(); |
161 } |
161 } |
162 |
162 |
163 void ViewToolset::setDrawDepth() |
163 void ViewToolset::setDrawDepth() |
164 { |
164 { |
165 if (m_window->renderer()->camera() == FreeCamera) |
165 if (m_window->renderer()->camera() == Camera::Free) |
166 return; |
166 return; |
167 |
167 |
168 bool ok; |
168 bool ok; |
169 double depth = QInputDialog::getDouble (m_window, "Set Draw Depth", |
169 double depth = QInputDialog::getDouble (m_window, "Set Draw Depth", |
170 format ("Depth value for %1:", m_window->renderer()->currentCameraName()), |
170 format ("Depth value for %1:", m_window->renderer()->currentCameraName()), |