Merge pull request #3343 from jlewin/design_tools
Restore non-descent behavior
This commit is contained in:
commit
8ac83f3f9a
2 changed files with 2 additions and 8 deletions
|
|
@ -206,7 +206,7 @@ namespace MatterHackers.MatterControl.CustomWidgets.TreeView
|
|||
Selectable = false
|
||||
});
|
||||
};
|
||||
TitleBar.AddChild(textWidget = new TextWidget(this.Text)
|
||||
TitleBar.AddChild(textWidget = new TextWidget(this.Text, pointSize: theme.DefaultFontSize, textColor: theme.Colors.PrimaryTextColor)
|
||||
{
|
||||
Selectable = false,
|
||||
AutoExpandBoundsToText = true,
|
||||
|
|
|
|||
|
|
@ -273,18 +273,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
var activeEditors = new List<(IObject3DEditor, IObject3D, string)>();
|
||||
|
||||
foreach (var child in selectedItem.DescendantsAndSelf())
|
||||
foreach (var child in new[] { selectedItem })
|
||||
{
|
||||
if (ApplicationController.Instance.GetEditorsForType(child.GetType())?.FirstOrDefault() is IObject3DEditor editor)
|
||||
{
|
||||
activeEditors.Add((editor, child, child.Name));
|
||||
}
|
||||
|
||||
// If the object is not persistable than don't show its details.
|
||||
if(!child.Persistable)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ShowObjectEditor(activeEditors, selectedItem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue