瀏覽代碼

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 9 年之前
父節點
當前提交
8ff7a4ba08
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;