Skip to content

Ctrl+K hotkey doesn't properly create multiple connections #281

@Skaruts

Description

@Skaruts

When using Ctrl+K to connect one entity to multiple entities, it gives all the entities the same targetname and it never creates multiple target properties (i.e. target2, target3, etc...).

For example, when connecting a trigger to a light with classname light, it automatically creates these properties:

// on the trigger
target    light1

// on the light
targetname    light1

So far so good.

The problem is when you connect to a second light, that light is automatically given targetname light1 instead of targetname light2, and now you have two lights in the map with the same targetname and the trigger still only has one single target property.

This still happens if the second light already has a targetname set. The existing targetname is ignored and replaced with whatever is in the trigger's target property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions