FIX:don't use clipping plane in text gizmo
Jira:STUDIO-5811 when z<0, text is clipped Change-Id: I051a0733cdc3255867b5eb586e07ca2928a9aea8
This commit is contained in:
parent
e7e7539a4b
commit
5cb3fc86c5
|
@ -1510,8 +1510,17 @@ Camera& GLCanvas3D::get_camera()
|
|||
return camera;
|
||||
}
|
||||
|
||||
void GLCanvas3D::set_color_by(const std::string& value)
|
||||
void GLCanvas3D::set_use_clipping_planes(bool use)
|
||||
{
|
||||
if (m_gizmos.get_current_type() == GLGizmosManager::EType::Text) {
|
||||
m_use_clipping_planes = false;
|
||||
}
|
||||
else{
|
||||
m_use_clipping_planes = use;
|
||||
}
|
||||
}
|
||||
|
||||
void GLCanvas3D::set_color_by(const std::string &value) {
|
||||
m_color_by = value;
|
||||
}
|
||||
|
||||
|
|
|
@ -762,7 +762,7 @@ public:
|
|||
}
|
||||
}
|
||||
void reset_clipping_planes_cache() { m_sla_caps[0].triangles.clear(); m_sla_caps[1].triangles.clear(); }
|
||||
void set_use_clipping_planes(bool use) { m_use_clipping_planes = use; }
|
||||
void set_use_clipping_planes(bool use);
|
||||
|
||||
bool get_use_clipping_planes() const { return m_use_clipping_planes; }
|
||||
const std::array<ClippingPlane, 2> &get_clipping_planes() const { return m_clipping_planes; };
|
||||
|
|
Loading…
Reference in New Issue