mapeditor/tiled

Can't send object to another layer when only 2 object layers are present in the map #3417

user72356 posted onGitHub

The option to select an object, right click and send it to another layer only appears when 3 object layers are present in map. I would expect to start seeing the option when 2 layers are present.

Thank you!


The culprit seems to be this double check for objectGroupsIterator.next() - it wants two nexts, i.e. a second layer and a third layer. https://github.com/mapeditor/tiled/blob/master/src/tiled/abstractobjecttool.cpp#L702 Was this perhaps meant to be if (objectGroupsIterator && objectGroupsIterator.next())?

posted by eishiya almost 3 years ago

Was this perhaps meant to be if (objectGroupsIterator && objectGroupsIterator.next())?

Yeah, actually the begin function already calls the first next, so there should be only one additional call. Good catch!

posted by bjorn over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests