|
@@ -536,10 +536,10 @@ module BABYLON {
|
|
|
* Returns the TransformNode.
|
|
|
*/
|
|
|
public setParent(node: Nullable<Node>): TransformNode {
|
|
|
- if (node === null && this.parent === null) {
|
|
|
+ if (!node && !this.parent) {
|
|
|
return this;
|
|
|
}
|
|
|
- if (node === null) {
|
|
|
+ if (!node) {
|
|
|
var rotation = Tmp.Quaternion[0];
|
|
|
var position = Tmp.Vector3[0];
|
|
|
var scale = Tmp.Vector3[1];
|