Explorar o código

Refs #9057 : Fix test for property existence in property binding in the case if property is a false boolean or a numeric equal to zero (#9064)

Anthony BRIAND %!s(int64=9) %!d(string=hai) anos
pai
achega
8ff7a4ba08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/animation/PropertyBinding.js

+ 1 - 1
src/animation/PropertyBinding.js

@@ -163,7 +163,7 @@ THREE.PropertyBinding.prototype = {
 		// resolve property
 		var nodeProperty = targetObject[ propertyName ];
 
-		if ( ! nodeProperty ) {
+		if ( nodeProperty === undefined ) {
 
 			var nodeName = parsedPath.nodeName;