Fix Object3D name regression
- Issue MatterHackers/MCCentral#2069 Investigate multiple failing tests due to missing Scene items
This commit is contained in:
parent
1ea7e54efa
commit
0cd3ee2dbb
1 changed files with 6 additions and 2 deletions
|
|
@ -39,9 +39,7 @@ namespace MatterHackers.MatterControl
|
|||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.MatterControl.Library;
|
||||
using MatterHackers.PolygonMesh;
|
||||
using MatterHackers.RayTracer;
|
||||
using MatterHackers.VectorMath;
|
||||
|
||||
/// <summary>
|
||||
/// Loads IObject3D objects for mesh based ILibraryItems
|
||||
|
|
@ -83,6 +81,12 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
catch { }
|
||||
|
||||
if (loadedItem != null)
|
||||
{
|
||||
// Push the original Library item name through to the IObject3D
|
||||
loadedItem.Name = item.Name;
|
||||
}
|
||||
|
||||
// Notification should force invalidate and redraw
|
||||
progressReporter?.Invoke(1, "");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue