Set ImagePlane ShapeColor white at creation

to overwrite random color.
This commit is contained in:
Flachy Joe
2022-02-14 13:58:15 +01:00
committed by wwmayer
parent 52925f65d2
commit 73714261ef

View File

@@ -153,6 +153,7 @@ void CmdCreateImagePlane::activated(int iMsg)
doCommand(Doc,"App.activeDocument().%s.YSize = %f",FeatName.c_str(),height);
doCommand(Doc,"App.activeDocument().%s.Placement = App.Placement(App.Vector(%f,%f,%f),App.Rotation(%f,%f,%f,%f))"
,FeatName.c_str(),p.x,p.y,p.z,r[0],r[1],r[2],r[3]);
doCommand(Doc,"App.activeDocument().%s.ViewObject.ShapeColor=(1.,1.,1.)",FeatName.c_str());
doCommand(Doc,"Gui.SendMsgToActiveView('ViewFit')");
commitCommand();
}