minor fixes to some scripts / From<impl for Project Config> (#5582)
minor fixes Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
		@ -45,8 +45,8 @@ test:
 | 
			
		||||
    export RUST_BRACKTRACE="full" && cargo nextest run --workspace --no-fail-fast
 | 
			
		||||
 | 
			
		||||
publish-kcl version:
 | 
			
		||||
    git tag {{version}}
 | 
			
		||||
    git push --tags
 | 
			
		||||
    git tag kcl-{{version}}
 | 
			
		||||
    git push origin kcl-{{version}}
 | 
			
		||||
    cargo publish -p derive-docs
 | 
			
		||||
    cargo publish -p kcl-lib
 | 
			
		||||
    cargo publish -p kcl-test-server
 | 
			
		||||
 | 
			
		||||
@ -301,6 +301,20 @@ impl From<crate::settings::types::ModelingSettings> for ExecutorSettings {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl From<crate::settings::types::project::ProjectModelingSettings> for ExecutorSettings {
 | 
			
		||||
    fn from(modeling: crate::settings::types::project::ProjectModelingSettings) -> Self {
 | 
			
		||||
        Self {
 | 
			
		||||
            units: modeling.base_unit,
 | 
			
		||||
            highlight_edges: modeling.highlight_edges.into(),
 | 
			
		||||
            enable_ssao: modeling.enable_ssao.into(),
 | 
			
		||||
            show_grid: Default::default(),
 | 
			
		||||
            replay: None,
 | 
			
		||||
            project_directory: None,
 | 
			
		||||
            current_file: None,
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl ExecutorSettings {
 | 
			
		||||
    /// Add the current file path to the executor settings.
 | 
			
		||||
    pub fn with_current_file(&mut self, current_file: PathBuf) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user