From a2560cc90c28e02e6918cb1a30b5dba5f6fdc78d Mon Sep 17 00:00:00 2001 From: kgv Date: Sun, 10 Sep 2017 11:56:11 +0300 Subject: [PATCH] 0029096: Coding Rules - eliminate several compiler warnings in Training Samples --- samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp b/samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp index 413674ee9f..08bc578c34 100644 --- a/samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp +++ b/samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp @@ -1,3 +1,4 @@ +#include #include // include required OCCT headers @@ -619,7 +620,7 @@ public: } for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected()) { - myAISContext()->SetTransparency (myAISContext()->Current(), ((Standard_Real )theTrans) / 10.0, Standard_False); + myAISContext()->SetTransparency (myAISContext()->SelectedInteractive(), ((Standard_Real )theTrans) / 10.0, Standard_False); } myAISContext()->UpdateCurrentViewer(); }