Fix rendering current entity
This commit is contained in:
@@ -71,6 +71,14 @@ handle_entity_mode :: proc(
|
||||
input := &state.input
|
||||
mpos := draw.camera_convert_screen_to_world(&state.draw.cam, input.mouse)
|
||||
|
||||
if interface.selected_entity != -1
|
||||
{
|
||||
def := &level.entity_defs[interface.selected_entity]
|
||||
{
|
||||
draw.solid_circle_add(&interface.state.draw.solid_circles, {p = def.body_def.position, q = {c = 1} }, 0.2, {1, 0, 0, 1})
|
||||
}
|
||||
}
|
||||
|
||||
//Setlect entity
|
||||
if is_key_pressed(state, glfw.MOUSE_BUTTON_LEFT)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user