From cc8b010a50ba706efce3b9cbdaf2da66b7b1262d Mon Sep 17 00:00:00 2001 From: sunag Date: Mon, 5 Jan 2026 12:42:25 -0300 Subject: [PATCH 1/2] Line2NodeMaterial: Rename `useColor` property to `vertexColors` (#32670) --- src/materials/nodes/Line2NodeMaterial.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/materials/nodes/Line2NodeMaterial.js b/src/materials/nodes/Line2NodeMaterial.js index 7e24d1c0104fa9..4b5720e5abf82d 100644 --- a/src/materials/nodes/Line2NodeMaterial.js +++ b/src/materials/nodes/Line2NodeMaterial.js @@ -56,7 +56,7 @@ class Line2NodeMaterial extends NodeMaterial { * @type {boolean} * @default false */ - this.useColor = parameters.vertexColors; + this.vertexColors = parameters.vertexColors; /** * The dash offset. @@ -133,7 +133,7 @@ class Line2NodeMaterial extends NodeMaterial { const { renderer } = builder; const useAlphaToCoverage = this._useAlphaToCoverage; - const useColor = this.useColor; + const vertexColors = this.vertexColors; const useDash = this._useDash; const useWorldUnits = this._useWorldUnits; @@ -434,7 +434,7 @@ class Line2NodeMaterial extends NodeMaterial { } else { - if ( useColor ) { + if ( vertexColors ) { const instanceColorStart = attribute( 'instanceColorStart' ); const instanceColorEnd = attribute( 'instanceColorEnd' ); From a8d278986ed68754709f930370de677ccc0b8f4d Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Mon, 5 Jan 2026 16:59:32 +0100 Subject: [PATCH 2/2] Inspector: Store parameters object+key (#32507) --- examples/jsm/inspector/tabs/Parameters.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/jsm/inspector/tabs/Parameters.js b/examples/jsm/inspector/tabs/Parameters.js index 0483a87c7c8c29..8e246dd7b78c6e 100644 --- a/examples/jsm/inspector/tabs/Parameters.js +++ b/examples/jsm/inspector/tabs/Parameters.js @@ -13,6 +13,8 @@ class ParametersGroup { this.paramList = new Item( name ); + this.objects = []; + } close() { @@ -93,6 +95,15 @@ class ParametersGroup { }; + + this._registerParameter( object, property, editor, subItem ); + + } + + _registerParameter( object, property, editor, subItem ) { + + this.objects.push( { object: object, key: property, editor: editor, subItem: subItem } ); + } addFolder( name ) { @@ -291,6 +302,8 @@ class ParametersGroup { }; + this._registerParameter( object, property, editor, subItem ); + return editor; } @@ -315,6 +328,8 @@ class Parameters extends Tab { this.paramList = paramList; + this.groups = []; + } createGroup( name ) { @@ -322,6 +337,7 @@ class Parameters extends Tab { const group = new ParametersGroup( this, name ); this.paramList.add( group.paramList ); + this.groups.push( group ); return group;