@Override public void buildWorldObject() { BuildingModel bm = this.bm; if (!preview || bm == null) { bm = BuildingParser.parseBuilding(primitive, perspective); if (primitive instanceof Node || primitive instanceof Way) { selection = parseSelection(primitive.getUniqueId(), bm); } this.bm = bm; } preview = false; if (bm != null) { BuildingElementsTextureManager tm = new CacheOsmBuildingElementsTextureMenager(textureLibraryStorageService); BuildingOutput buildModel = BuildingBuilder.buildModel(bm, tm); Model model = buildModel.getModel(); model.useLight = true; model.useTexture = true; this.model = model; this.buildModel = true; debug = prepareDebugInformation(buildModel); } }