Skip to content

Commit a6ab33f

Browse files
committed
Fixed compilation errors.
1 parent 05369f7 commit a6ab33f

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/model_importer.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,16 @@ impl ModelImporter {
129129
Ok(())
130130
}
131131
_ => {
132-
<<<<<<< HEAD
133-
=======
134132
#[cfg(not(feature = "triangulation"))]
135133
{
136-
Err("Encountered a face that needed triangulation but experimental triangulation feature is disabled".to_owned())
134+
return Err("Encountered a face that needed triangulation but experimental triangulation feature is disabled".to_owned());
137135
}
138-
>>>>>>> 17bad1f (Bugfixes + laid some basic groundwork for tmf segment lader/unloader)
139136
#[cfg(feature = "triangulation")]
140137
{
141138
let vertex_indices = SmallVec::from_slice(vertex_indices);
142139
let normal_indices = SmallVec::from_slice(normal_indices);
143140
let uv_indices = SmallVec::from_slice(uv_indices);
144141
triangulate(self, vertex_indices, normal_indices, uv_indices);
145-
146142
Ok(())
147143
}
148144
#[cfg(not(feature = "triangulation"))]

src/tmf.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
#[repr(u16)]
32
#[derive(Debug)]
43
pub(crate) enum SectionType {
@@ -42,9 +41,7 @@ impl CompressionType {
4241
}
4342
}
4443
}
45-
=======
4644
use crate::tmf_segment::*;
47-
>>>>>>> 17bad1f (Bugfixes + laid some basic groundwork for tmf segment lader/unloader)
4845
fn read_segment_header<R: Read>(reader: &mut R) -> Result<(SectionType, usize, CompressionType)> {
4946
let seg_type = read_u16(reader)?;
5047
let seg_type = SectionType::from_u16(seg_type);

src/utilis.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub(crate) fn fast_prune<T: Sized>(data: &mut Vec<T>, indices: &mut [IndexType])
2323
}
2424
#[allow(non_camel_case_types)]
2525
#[cfg(feature = "fast_trig")]
26-
type fprec = f64;
26+
pub(crate) type fprec = f64;
2727
#[cfg(feature = "fast_trig")]
2828
#[cfg(feature = "fast_trig")]
2929
const F_PI: fprec = std::f64::consts::PI;

0 commit comments

Comments
 (0)