Skip to content

Commit c869b5b

Browse files
authored
1 parent af45822 commit c869b5b

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

packages/tools/nodeEditor/src/components/propertyTab/propertyTabComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
462462
</div>
463463
<div>
464464
<LineContainerComponent title="GENERAL">
465+
<TextInputLineComponent label="Name" lockObject={this.props.globalState.lockObject} target={this.props.globalState.nodeMaterial} propertyName="name" />
465466
<OptionsLine
466467
ref={this._modeSelect}
467468
label="Mode"
@@ -584,7 +585,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
584585
onClick={async () => {
585586
this.props.globalState.nodeMaterial.build();
586587
const fragment = await this.props.globalState.nodeMaterial!._getProcessedFragmentAsync();
587-
StringTools.DownloadAsFile(this.props.globalState.hostDocument, fragment, "nme.block.glsl");
588+
StringTools.DownloadAsFile(this.props.globalState.hostDocument, fragment, `${this.props.globalState.nodeMaterial.name}.block.glsl`);
588589
}}
589590
/>
590591
)}

packages/tools/nodeGeometryEditor/src/components/propertyTab/propertyTabComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
259259
</div>
260260
<div>
261261
<LineContainerComponent title="GENERAL">
262+
<TextInputLineComponent label="Name" lockObject={this.props.globalState.lockObject} target={this.props.globalState.nodeGeometry} propertyName="name" />
262263
<TextLineComponent label="Version" value={Engine.Version} />
263264
<TextLineComponent
264265
label="Help"

packages/tools/nodeParticleEditor/src/components/propertyTab/propertyTabComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
252252
</div>
253253
<div>
254254
<LineContainerComponent title="GENERAL">
255+
<TextInputLineComponent label="Name" lockObject={this.props.globalState.lockObject} target={this.props.globalState.nodeParticleSet} propertyName="name" />
255256
<TextLineComponent label="Version" value={Engine.Version} />
256257
<TextLineComponent
257258
label="Help"

packages/tools/nodeRenderGraphEditor/src/components/propertyTab/propertyTabComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
257257
</div>
258258
<div>
259259
<LineContainerComponent title="GENERAL">
260+
<TextInputLineComponent label="Name" lockObject={this.props.globalState.lockObject} target={this.props.globalState.nodeRenderGraph} propertyName="name" />
260261
<OptionsLine
261262
label="Engine"
262263
target={this}

0 commit comments

Comments
 (0)