projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2ff781
)
0026984: Draw Harness, ViewerTest - preserve local transformation of presentation...
author
isk
<isk@opencascade.com>
Fri, 11 Dec 2015 16:29:09 +0000
(19:29 +0300)
committer
bugmaster
<bugmaster@opencascade.com>
Thu, 17 Dec 2015 13:35:58 +0000
(16:35 +0300)
src/ViewerTest/ViewerTest.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/ViewerTest/ViewerTest.cxx
b/src/ViewerTest/ViewerTest.cxx
index
316fd14
..
7fc38d3
100644
(file)
--- a/
src/ViewerTest/ViewerTest.cxx
+++ b/
src/ViewerTest/ViewerTest.cxx
@@
-3220,8
+3220,15
@@
Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
}
else
{
- anAISContext->Remove (anIO, Standard_False);
aTexturedIO = new AIS_TexturedShape (DBRep::Get (theArgv[1]));
+
+ if (anIO->HasTransformation())
+ {
+ const gp_Trsf& aLocalTrsf = anIO->LocalTransformation();
+ aTexturedIO->SetLocalTransformation (aLocalTrsf);
+ }
+
+ anAISContext->Remove (anIO, Standard_False);
GetMapOfAIS().UnBind1 (anIO);
GetMapOfAIS().UnBind2 (aShapeName);
GetMapOfAIS().Bind (aTexturedIO, aShapeName);