mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-27 01:25:52 +00:00
Fix tolerance not being updated on model reload
This commit is contained in:
parent
2ba91313ef
commit
15439c9586
@ -219,21 +219,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
match watcher_rx.try_recv() {
|
match watcher_rx.try_recv() {
|
||||||
Ok(shape) => {
|
Ok(shape) => {
|
||||||
processed_shape.debug_info.clear();
|
processed_shape = shape_processor.process(&shape);
|
||||||
processed_shape.triangles.clear();
|
|
||||||
|
|
||||||
processed_shape.aabb = shape.bounding_volume();
|
|
||||||
shape
|
|
||||||
.to_shape(
|
|
||||||
processed_shape.tolerance,
|
|
||||||
&mut processed_shape.debug_info,
|
|
||||||
)
|
|
||||||
.topology()
|
|
||||||
.triangles(
|
|
||||||
processed_shape.tolerance,
|
|
||||||
&mut processed_shape.triangles,
|
|
||||||
&mut processed_shape.debug_info,
|
|
||||||
);
|
|
||||||
|
|
||||||
renderer.update_geometry(
|
renderer.update_geometry(
|
||||||
(&processed_shape.triangles).into(),
|
(&processed_shape.triangles).into(),
|
||||||
@ -394,7 +380,6 @@ impl ShapeProcessor {
|
|||||||
.triangles(tolerance, &mut triangles, &mut debug_info);
|
.triangles(tolerance, &mut triangles, &mut debug_info);
|
||||||
|
|
||||||
ProcessedShape {
|
ProcessedShape {
|
||||||
tolerance,
|
|
||||||
aabb,
|
aabb,
|
||||||
triangles,
|
triangles,
|
||||||
debug_info,
|
debug_info,
|
||||||
@ -403,7 +388,6 @@ impl ShapeProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct ProcessedShape {
|
struct ProcessedShape {
|
||||||
tolerance: Scalar,
|
|
||||||
aabb: Aabb<3>,
|
aabb: Aabb<3>,
|
||||||
triangles: Vec<Triangle<3>>,
|
triangles: Vec<Triangle<3>>,
|
||||||
debug_info: DebugInfo,
|
debug_info: DebugInfo,
|
||||||
|
Loading…
Reference in New Issue
Block a user