mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-22 14:54:43 +08:00
Relaxed enum value
This commit is contained in:
@@ -530,7 +530,7 @@ export default class ObjectEntity extends IEntity {
|
||||
}
|
||||
|
||||
isMaterial() {
|
||||
return this.getClass() === Configuration.paths.materialGraphNode || this.MaterialExpression !== undefined
|
||||
return this.getClass() === Configuration.paths.materialGraphNode
|
||||
}
|
||||
|
||||
/** @return {ObjectEntity} */
|
||||
@@ -620,7 +620,7 @@ export default class ObjectEntity extends IEntity {
|
||||
if (this.getClass() === Configuration.paths.macro) {
|
||||
return Utility.formatStringName(this.MacroGraphReference?.getMacroName())
|
||||
}
|
||||
if (this.isMaterial()) {
|
||||
if (this.isMaterial() && this.MaterialExpression) {
|
||||
const materialObject = /** @type {ObjectEntity} */(
|
||||
this[Configuration.subObjectAttributeNameFromReference(this.MaterialExpression, true)]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user