Skip to content

Commit 0afb685

Browse files
authored
call equals on internal property (playcanvas#3417)
1 parent 07cc0ab commit 0afb685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scene/materials/standard-material.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ const defineProp = (prop) => {
709709
},
710710
set: function (value) {
711711
const oldValue = this[internalName];
712-
if (!funcs.equals(value, oldValue)) {
712+
if (!funcs.equals(oldValue, value)) {
713713
if (!this._dirtyShader) {
714714
this._dirtyShader = dirtyShaderFunc ? dirtyShaderFunc(oldValue, value) : true;
715715
}

0 commit comments

Comments
 (0)