Ronen 8 years ago
parent
commit
1cb917332e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MonoGameSceneGraph/Source/Nodes/Node.cs

+ 1 - 1
MonoGameSceneGraph/Source/Nodes/Node.cs

@@ -276,7 +276,7 @@ namespace MonoGameSceneGraph
             
             // if local transformations are dirty, or parent transformations are out-of-date, update world transformations
             if (_isDirty || 
-                (_parent != null && _parentLastTransformVersion != _parent._transformVersion) |
+                (_parent != null && _parentLastTransformVersion != _parent._transformVersion) ||
                 (_parent == null && _parentLastTransformVersion != 0))
             {
                 // if we got parent, apply its transformations