Skip to content

Commit 7585325

Browse files
authored
Merge pull request #3191 from t3du/DebugConsoleWorld
Show world name in debug console
2 parents 34cc886 + 49b8c54 commit 7585325

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

armory/Sources/armory/trait/internal/DebugConsole.hx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,12 @@ class DebugConsole extends Trait {
280280

281281
function drawObjectNameInList(object: iron.object.Object, selected: Bool) {
282282
var _y = ui._y;
283-
ui.text(object.uid+'_'+object.name);
283+
284+
if (object.parent.name == 'Root')
285+
ui.text(object.uid+'_'+object.name+' ('+iron.Scene.active.raw.world_ref+')');
286+
else
287+
ui.text(object.uid+'_'+object.name);
288+
284289

285290
if (object == iron.Scene.active.camera) {
286291
var tagWidth = 100;

0 commit comments

Comments
 (0)