Draft: updates related to transparency to alpha change
This commit is contained in:
@@ -194,7 +194,7 @@ class AnnotationStyleEditor(gui_base.GuiCommandSimplest):
|
||||
if hasattr(vobj, attr):
|
||||
try:
|
||||
if vobj.getTypeIdOfProperty(attr) == "App::PropertyColor":
|
||||
value = value & 0xFFFFFF00
|
||||
value = value | 0x000000FF
|
||||
setattr(vobj, attr, value)
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -314,7 +314,7 @@ class AddToConstruction(gui_base.GuiCommandNeedsSelection):
|
||||
if not hasattr(Gui, "draftToolBar"):
|
||||
return
|
||||
|
||||
col = params.get_param("constructioncolor") & 0xFFFFFF00
|
||||
col = params.get_param("constructioncolor") | 0x000000FF
|
||||
|
||||
# Get the construction group or create it if it doesn't exist
|
||||
grp = self.doc.getObject("Draft_Construction")
|
||||
|
||||
Reference in New Issue
Block a user