Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename .blueprint extension to .rbl #5506

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/re_log_encoding/src/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub enum VersionPolicy {

/// Return [`DecodeError::IncompatibleRerunVersion`] if the versions aren't compatible.
///
/// We usually use this for tests, and for loading `.blueprint` files.
/// We usually use this for tests, and for loading `.rbl` blueprint files.
Error,
}

Expand Down
2 changes: 1 addition & 1 deletion crates/re_ui/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl UICommand {
"Save data for the current loop selection to a Rerun data file (.rrd)",
),

Self::SaveBlueprint => ("Save blueprint…", "Save the current viewer setup as a Rerun blueprint file (.blueprint)"),
Self::SaveBlueprint => ("Save blueprint…", "Save the current viewer setup as a Rerun blueprint file (.rbl)"),

Self::Open => ("Open…", "Open any supported files (.rrd, images, meshes, …)"),

Expand Down
2 changes: 1 addition & 1 deletion crates/re_viewer/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ fn save_blueprint(app: &mut App, store_context: Option<&StoreContext<'_>>) {
let entity_db = store_context.blueprint;

let file_name = format!(
"{}.blueprint",
"{}.rbl",
crate::saving::sanitize_app_id(&store_context.app_id)
);
let title = "Save blueprint";
Expand Down
4 changes: 2 additions & 2 deletions crates/re_viewer/src/saving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn default_blueprint_path(app_id: &ApplicationId) -> anyhow::Result<std::pat
const MAX_PATH: usize = 255;
let directory_part_length = blueprint_dir.as_os_str().len();
let hash_part_length = 16 + 1;
let extension_part_length = ".blueprint".len();
let extension_part_length = ".rbl".len();
let total_reserved_length = directory_part_length + hash_part_length + extension_part_length;
if total_reserved_length > MAX_PATH {
anyhow::bail!(
Expand All @@ -56,7 +56,7 @@ pub fn default_blueprint_path(app_id: &ApplicationId) -> anyhow::Result<std::pat
sanitized_app_id = format!("{sanitized_app_id}-{hash:x}");
}

Ok(blueprint_dir.join(format!("{sanitized_app_id}.blueprint")))
Ok(blueprint_dir.join(format!("{sanitized_app_id}.rbl")))
}

#[cfg(not(target_arch = "wasm32"))]
Expand Down
Loading