Ronen 8 жил өмнө
parent
commit
1cb917332e

+ 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