Skip to content

Commit 9779281

Browse files
committed
fix: 修复类型错误
1 parent be56871 commit 9779281

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { NodeMaterialBlockConnectionPointTypes } from '@babylonjs/core'
22

3-
import { C3, C4 } from '@/type/general/color.type'
4-
53
export interface RvMaterialNode {
64
fid: string
75
inputs: RvMaterialNodeInput[]
@@ -10,6 +8,6 @@ export interface RvMaterialNode {
108
export interface RvMaterialNodeInput {
119
type: NodeMaterialBlockConnectionPointTypes
1210
key: string
13-
value: string | number | C3 | C4
11+
value: string | number
1412
range?: [number, number]
1513
}

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ import { PluginType } from './plugin/dto/plugin-type.enum'
264264
import { PluginViewProps } from './plugin/dto/plugin-view-props.interface'
265265
import IconPlugin from './plugin/icon-plugin'
266266
import ViewPlugin from './plugin/view-plugin'
267+
import { C3, C4 } from './type/general/color.type'
267268
import { V2, V3, V4 } from './type/general/vector.type'
268269
import CryptoUtils from './utils/crypto-utils'
269270
import DataUtils from './utils/data-utils'
@@ -485,6 +486,8 @@ export type {
485486
NodeMaterialChangeListener,
486487
RsMaterialServiceApi,
487488
RvNodeMaterialAnalyzerApi,
489+
C3,
490+
C4,
488491
}
489492

490493
export {

0 commit comments

Comments
 (0)