From 73714261efcf86125b5ca99e249ceeb5d1a0b3f6 Mon Sep 17 00:00:00 2001 From: Flachy Joe Date: Mon, 14 Feb 2022 13:58:15 +0100 Subject: [PATCH] Set ImagePlane ShapeColor white at creation to overwrite random color. --- src/Mod/Image/Gui/Command.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/Image/Gui/Command.cpp b/src/Mod/Image/Gui/Command.cpp index 1e7492f3b5..ddb15853b7 100644 --- a/src/Mod/Image/Gui/Command.cpp +++ b/src/Mod/Image/Gui/Command.cpp @@ -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(); }