David Catuhe 5 年之前
父节点
当前提交
4aed032c74
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      inspector/src/components/actionTabs/lines/colorPickerComponent.tsx

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

@@ -64,7 +64,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerCompon
                 r: nextProps.value.r * 255,
                 g: nextProps.value.g * 255,
                 b: nextProps.value.b * 255,
-                a: nextProps instanceof Color4 ? nextProps.a * 100 : 100,
+                a: nextProps.value instanceof Color4 ? nextProps.value.a : 1,
             };
             nextState.hex = nextProps.value.toHexString();
         }