Skip to content

Commit 2d1695e

Browse files
authored
Nodes: Fix addNodeClass and addNodeMaterial in case of renaming classes (#26846)
1 parent 6a5d6de commit 2d1695e

File tree

118 files changed

+129
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+129
-127
lines changed

examples/jsm/nodes/accessors/BitangentNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ export const bitangentWorld = nodeImmutable( BitangentNode, BitangentNode.WORLD
8686
export const transformedBitangentView = normalize( transformedNormalView.cross( transformedTangentView ).mul( tangentGeometry.w ) );
8787
export const transformedBitangentWorld = normalize( transformedBitangentView.transformDirection( cameraViewMatrix ) );
8888

89-
addNodeClass( BitangentNode );
89+
addNodeClass( 'BitangentNode', BitangentNode );

examples/jsm/nodes/accessors/BufferAttributeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ export const instancedDynamicBufferAttribute = ( array, type, stride, offset ) =
122122

123123
addNodeElement( 'toAttribute', ( bufferNode ) => bufferAttribute( bufferNode.value ) );
124124

125-
addNodeClass( BufferAttributeNode );
125+
addNodeClass( 'BufferAttributeNode', BufferAttributeNode );

examples/jsm/nodes/accessors/BufferNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export default BufferNode;
2727

2828
export const buffer = ( value, type, count ) => nodeObject( new BufferNode( value, type, count ) );
2929

30-
addNodeClass( BufferNode );
30+
addNodeClass( 'BufferNode', BufferNode );

examples/jsm/nodes/accessors/CameraNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ export const cameraNormalMatrix = nodeImmutable( CameraNode, CameraNode.NORMAL_M
9595
export const cameraWorldMatrix = nodeImmutable( CameraNode, CameraNode.WORLD_MATRIX );
9696
export const cameraPosition = nodeImmutable( CameraNode, CameraNode.POSITION );
9797

98-
addNodeClass( CameraNode );
98+
addNodeClass( 'CameraNode', CameraNode );

examples/jsm/nodes/accessors/CubeTextureNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ export const cubeTexture = nodeProxy( CubeTextureNode );
115115

116116
addNodeElement( 'cubeTexture', cubeTexture );
117117

118-
addNodeClass( CubeTextureNode );
118+
addNodeClass( 'CubeTextureNode', CubeTextureNode );

examples/jsm/nodes/accessors/ExtendedMaterialNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ export default ExtendedMaterialNode;
7373
export const materialNormal = nodeImmutable( ExtendedMaterialNode, ExtendedMaterialNode.NORMAL );
7474
export const materialClearcoatNormal = nodeImmutable( ExtendedMaterialNode, ExtendedMaterialNode.CLEARCOAT_NORMAL );
7575

76-
addNodeClass( ExtendedMaterialNode );
76+
addNodeClass( 'ExtendedMaterialNode', ExtendedMaterialNode );

examples/jsm/nodes/accessors/InstanceNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ export default InstanceNode;
6868

6969
export const instance = nodeProxy( InstanceNode );
7070

71-
addNodeClass( InstanceNode );
71+
addNodeClass( 'InstanceNode', InstanceNode );

examples/jsm/nodes/accessors/LineMaterialNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export const materialLineDashSize = nodeImmutable( LineMaterialNode, LineMateria
2626
export const materialLineGapSize = nodeImmutable( LineMaterialNode, LineMaterialNode.GAP_SIZE );
2727
export const materialLineWidth = nodeImmutable( LineMaterialNode, LineMaterialNode.LINEWIDTH );
2828

29-
addNodeClass( LineMaterialNode );
29+
addNodeClass( 'LineMaterialNode', LineMaterialNode );

examples/jsm/nodes/accessors/MaterialNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,4 @@ export const materialIridescence = nodeImmutable( MaterialNode, MaterialNode.IRI
274274
export const materialIridescenceIOR = nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_IOR );
275275
export const materialIridescenceThickness = nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_THICKNESS );
276276

277-
addNodeClass( MaterialNode );
277+
addNodeClass( 'MaterialNode', MaterialNode );

examples/jsm/nodes/accessors/MaterialReferenceNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ export default MaterialReferenceNode;
3939

4040
export const materialReference = ( name, type, material ) => nodeObject( new MaterialReferenceNode( name, type, material ) );
4141

42-
addNodeClass( MaterialReferenceNode );
42+
addNodeClass( 'MaterialReferenceNode', MaterialReferenceNode );

0 commit comments

Comments
 (0)