Added initial networkmanager component.
This commit is contained in:
parent
0e2ced65e8
commit
1ebd7293a3
@ -137,16 +137,18 @@ export class Toolbox {
|
||||
colorPicker.value = color;
|
||||
colorPicker.onValueChangedObservable.add((value) => {
|
||||
const oldColor = material.diffuseColor.clone();
|
||||
material.diffuseColor = value;
|
||||
material.id = "material-" + value.toHexString();
|
||||
material.name = "material-" + value.toHexString();
|
||||
mesh.id = "toolbox-color-" + value.toHexString();
|
||||
mesh.name = "toolbox-color-" + value.toHexString();
|
||||
const newColor = value.clone();
|
||||
material.diffuseColor = newColor;
|
||||
const newColorHex = newColor.toHexString();
|
||||
material.id = "material-" + newColorHex;
|
||||
material.name = "material-" + newColorHex;
|
||||
mesh.id = "toolbox-color-" + newColorHex;
|
||||
mesh.name = "toolbox-color-" + newColorHex;
|
||||
this.diagramManager.onDiagramEventObservable.notifyObservers(
|
||||
{
|
||||
type: DiagramEventType.CHANGECOLOR,
|
||||
oldColor: oldColor,
|
||||
newColor: value
|
||||
newColor: newColor
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user