mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-26 00:27:14 +08:00
0026984: Draw Harness, ViewerTest - preserve local transformation of presentation within vtexture command
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user