Fix #130232: Overlay Next: Relationship Lines on Instances
Add missing conditional logic.
This commit is contained in:
@@ -35,9 +35,11 @@ class Relations {
|
||||
{
|
||||
}
|
||||
|
||||
void begin_sync(Resources & /*res*/, const State &state)
|
||||
void begin_sync(Resources &res, const State &state)
|
||||
{
|
||||
enabled_ = state.space_type == SPACE_VIEW3D;
|
||||
enabled_ &= (state.v3d_flag & V3D_HIDE_HELPLINES) == 0;
|
||||
enabled_ &= res.selection_type == SelectionType::DISABLED;
|
||||
|
||||
points_buf_.clear();
|
||||
relations_buf_.clear();
|
||||
@@ -49,6 +51,11 @@ class Relations {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Don't show object extras in set's. */
|
||||
if (ob_ref.object->base_flag & (BASE_FROM_SET | BASE_FROM_DUPLI)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object *ob = ob_ref.object;
|
||||
const float4 &relation_color = res.theme_settings.color_wire;
|
||||
const float4 &constraint_color = res.theme_settings.color_grid_axis_z; /* ? */
|
||||
|
||||
Reference in New Issue
Block a user