sebavan 6 лет назад
Родитель
Сommit
eb44ef277d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      inspector/src/components/actionTabs/lines/color3LineComponent.tsx

+ 1 - 1
inspector/src/components/actionTabs/lines/color3LineComponent.tsx

@@ -106,7 +106,7 @@ export class Color3LineComponent extends React.Component<IColor3LineComponentPro
     render() {
 
         const chevron = this.state.isExpanded ? <FontAwesomeIcon icon={faMinus} /> : <FontAwesomeIcon icon={faPlus} />
-        const colorAsColor3 = this.state.color.getClassName() === "Color3" ? this.state.color : new BABYLON.Color3(this.state.color.r, this.state.color.g, this.state.color.b);
+        const colorAsColor3 = this.state.color.getClassName() === "Color3" ? this.state.color : new Color3(this.state.color.r, this.state.color.g, this.state.color.b);
 
         return (
             <div className="color3Line">