Skip to content

Commit

Permalink
fix for #730
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jul 26, 2024
1 parent 0ec117e commit e6d4da6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editor/lib/commands/EntityUpdateCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export class EntityUpdateCommand extends Command {
this.component = payload.component;
this.property = payload.property;

const component = this.entity.components[payload.component];
// const component = this.entity.components[payload.component];
const component = AFRAME.components[payload.component];
// Don't use AFRAME.components[payload.component] here, but use this.entity.components[payload.component] so we have the dynamic schema,
// important for material or geometry components like for example modifying material metalness,
// otherwise component.schema[payload.property] would be undefined.
Expand Down

0 comments on commit e6d4da6

Please sign in to comment.