mirror of
https://github.com/pissang/claygl.git
synced 2026-02-01 17:27:08 +00:00
fix Material#isDefined
This commit is contained in:
parent
9b042bf9ff
commit
bf046c5154
@ -332,7 +332,7 @@ class Material<
|
||||
*/
|
||||
isDefined(shaderType: ShaderType, symbol: string) {
|
||||
// PENDING hasOwnProperty ?
|
||||
return this.getDefine(shaderType, symbol) === undefined;
|
||||
return this.getDefine(shaderType, symbol) !== undefined;
|
||||
}
|
||||
/**
|
||||
* Get macro value defined in shader.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user