Attract: Draw conflicts more subtly
This commit is contained in:
parent
fcba8a2e0f
commit
65ff9da428
@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
# ##### END GPL LICENSE BLOCK #####
|
# ##### END GPL LICENSE BLOCK #####
|
||||||
|
|
||||||
# <pep8-80 compliant>
|
# <pep8 compliant>
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import logging
|
import logging
|
||||||
@ -87,8 +87,7 @@ def draw_strip_conflict(strip_coords, pixel_size_x):
|
|||||||
|
|
||||||
# Always draw the full rectangle, the conflict should be resolved and thus stand out.
|
# Always draw the full rectangle, the conflict should be resolved and thus stand out.
|
||||||
bgl.glColor3f(*CONFLICT_COLOUR)
|
bgl.glColor3f(*CONFLICT_COLOUR)
|
||||||
bgl.glLineWidth(3)
|
bgl.glLineWidth(2)
|
||||||
bgl.glPointSize(10)
|
|
||||||
|
|
||||||
bgl.glBegin(bgl.GL_LINE_LOOP)
|
bgl.glBegin(bgl.GL_LINE_LOOP)
|
||||||
bgl.glVertex2f(s_x1, s_y1)
|
bgl.glVertex2f(s_x1, s_y1)
|
||||||
@ -97,13 +96,6 @@ def draw_strip_conflict(strip_coords, pixel_size_x):
|
|||||||
bgl.glVertex2f(s_x1, s_y2)
|
bgl.glVertex2f(s_x1, s_y2)
|
||||||
bgl.glEnd()
|
bgl.glEnd()
|
||||||
|
|
||||||
bgl.glBegin(bgl.GL_POINTS)
|
|
||||||
bgl.glVertex2f(s_x1, s_y1)
|
|
||||||
bgl.glVertex2f(s_x2, s_y1)
|
|
||||||
bgl.glVertex2f(s_x2, s_y2)
|
|
||||||
bgl.glVertex2f(s_x1, s_y2)
|
|
||||||
bgl.glEnd()
|
|
||||||
|
|
||||||
bgl.glPopAttrib()
|
bgl.glPopAttrib()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user