/// <summary>Called when the renderer for this batch has changed.</summary> public void ChangeRenderer(Renderman renderer) { Renderer = renderer; RenderWithCamera(renderer.RenderLayer); // Let the mesh know that the parent changed: Mesh.ChangeParent(); InputMode mode; if (Renderer.RenderingInWorld) { mode = PowerUI.Input.WorldInputMode; } else { mode = PowerUI.Input.Mode; } bool isPhysics = (mode == InputMode.Physics); if (isPhysics == PhysicsMode) { return; } Mesh.SetPhysicsMode(isPhysics); }
/// <summary>Called when the renderer for this batch has changed.</summary> public void ChangeRenderer(Renderman renderer) { Renderer = renderer; RenderWithCamera(renderer.RenderLayer); // Let the mesh know that the parent changed: Mesh.ChangeParent(); }