Set ImagePlane ShapeColor white at creation
to overwrite random color.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user