Minor modification.
This commit is contained in:
parent
14139c2597
commit
27984580f7
@ -59,9 +59,9 @@ OV.Sidebar = class
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Update (model)
|
UpdateSettings (hasDefaultMaterial)
|
||||||
{
|
{
|
||||||
this.settingsPanel.Update (model);
|
this.settingsPanel.UpdateSettings (hasDefaultMaterial);
|
||||||
}
|
}
|
||||||
|
|
||||||
Resize (height)
|
Resize (height)
|
||||||
|
|||||||
@ -253,9 +253,8 @@ OV.SettingsSidebarPanel = class extends OV.SidebarPanel
|
|||||||
this.AddResetToDefaultsButton ();
|
this.AddResetToDefaultsButton ();
|
||||||
}
|
}
|
||||||
|
|
||||||
Update (model)
|
UpdateSettings (hasDefaultMaterial)
|
||||||
{
|
{
|
||||||
let hasDefaultMaterial = OV.HasDefaultMaterial (model);
|
|
||||||
if (!hasDefaultMaterial) {
|
if (!hasDefaultMaterial) {
|
||||||
OV.ShowDomElement (this.defaultColorInput.warning);
|
OV.ShowDomElement (this.defaultColorInput.warning);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -145,7 +145,7 @@ OV.Website = class
|
|||||||
this.viewer.SetMainObject (threeObject);
|
this.viewer.SetMainObject (threeObject);
|
||||||
this.viewer.SetUpVector (importResult.upVector, false);
|
this.viewer.SetUpVector (importResult.upVector, false);
|
||||||
this.navigator.FillTree (importResult);
|
this.navigator.FillTree (importResult);
|
||||||
this.sidebar.Update (this.model);
|
this.UpdateSidebar ();
|
||||||
this.FitModelToWindow (true);
|
this.FitModelToWindow (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -289,6 +289,12 @@ OV.Website = class
|
|||||||
this.viewer.FitSphereToWindow (boundingSphere, true);
|
this.viewer.FitSphereToWindow (boundingSphere, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateSidebar ()
|
||||||
|
{
|
||||||
|
let hasDefaultMaterial = OV.HasDefaultMaterial (this.model);
|
||||||
|
this.sidebar.UpdateSettings (hasDefaultMaterial);
|
||||||
|
}
|
||||||
|
|
||||||
UpdateMeshesVisibility ()
|
UpdateMeshesVisibility ()
|
||||||
{
|
{
|
||||||
this.viewer.SetMeshesVisibility ((meshUserData) => {
|
this.viewer.SetMeshesVisibility ((meshUserData) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user