Colours lost upon loading a file.

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Винтч0
Posts: 19
Joined: Thu Nov 17, 2022 6:59 am

Colours lost upon loading a file.

Post by Винтч0 »

After loading a file the colors are lost, actually they are rather not displayed.
When I right click on an part and enter the colour setting mode, it is visible that they have non-default colours, but all of they are displayed in gray.
Is there a bug in FreeCad or am I doing something wrong?
Лице no colours.png
Лице no colours.png (62.17 KiB) Viewed 735 times
_______
FreeCad 0.20.1 on Win 10, 64 bit
Attachments
Лице.FCStd
(44.06 KiB) Downloaded 9 times
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Colours lost upon loading a file.

Post by Shalmeneser »

Code: Select all

Ляво скосяване :: no object linked : internal name : Chamfer001
Attachments
Annotation 2022-12-01 112809.jpg
Annotation 2022-12-01 112809.jpg (7.97 KiB) Viewed 716 times
Винтч0
Posts: 19
Joined: Thu Nov 17, 2022 6:59 am

Re: Colours lost upon loading a file.

Post by Винтч0 »

You mean that because of the “Ляво скосяване :: no object linked : internal name : Chamfer001” the colours are not displayed upon loading the file?
I have removed the parts with the “!” sign on a copy of the documents, but still the colours are not displayed as they should when loading the documents.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Colours lost upon loading a file.

Post by chrisb »

Винтч0 wrote: Thu Dec 01, 2022 10:03 am When I right click on an part and enter the colour setting mode, it is visible that they have non-default colours, but all of they are displayed in gray.
Calling "Set colors" from the context menu doesn't show any color here. So it's time to ask for your FreeCAD infos and to ask for a retry in 0.21.

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.31035 (Git)
Build type: Release
Branch: master
Hash: c8074a972ee233d303e50e5d525aecae09c1cd04
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * freecad.gears 1.0.0
  * FeedsAndSpeeds 0.4.0
  * fcgear 1.0.0
  * fasteners 0.4.16
  * sheetmetal 0.2.57
  * ExplodedAssembly
  * Curves 0.6.1
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Винтч0
Posts: 19
Joined: Thu Nov 17, 2022 6:59 am

Re: Colours lost upon loading a file.

Post by Винтч0 »

I could not find where to download v. 21 from, the official release is 0.20.1.
There seems to be something with the Link Groups (Simple).
Parts which are not in Link Groups are shown fine, the ones within groups are not shown as they should.
Before save.png
Before save.png (24.2 KiB) Viewed 619 times
After save and load.png
After save and load.png (25.14 KiB) Viewed 619 times

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: Bulgarian/Bulgaria (bg_BG)
Installed mods: 
  * 3D_Printing_Tools
  * CADExchanger
  * CurvedShapes 1.0.4
  * Manipulator 1.4.9
Attachments
Colours.FCStd
(5.78 KiB) Downloaded 12 times
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Colours lost upon loading a file.

Post by chrisb »

A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Colours lost upon loading a file.

Post by Roy_043 »

Opening the file in V0.21 does show the problem. But if I recreate the model in V0.21 the problem does not occur.

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.21.31109 (Git)
Build type: Release
Branch: master
Hash: c23ee7ad88433a0f00e84afae0a62fe738be0c09
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods: 
Винтч0
Posts: 19
Joined: Thu Nov 17, 2022 6:59 am

Re: Colours lost upon loading a file.

Post by Винтч0 »

I retried in

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31155 (Git)
Build type: Release
Branch: master
Hash: 6f1b29769b33676edca2bd883b80bed25a0758c8
Python 3.8.15, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Bulgarian/Bulgaria (bg_BG)
Installed mods: 
  * 3D_Printing_Tools
  * CADExchanger
  * CurvedShapes 1.0.4
  * Manipulator 1.4.9
Absolutely no change in the behaviour.
I have also created a new documents with v0.21, after reopening it the colours are not shown.
But, some addition observations for both versions:
1. When I set a colour (the same colour, which is displayed in the color editing panel) for one of the sides of the uncoloured cube, the colours of the other sides start showing as they should.
2. When I copy and paste a LinkGroup the colours of the parts in it are not displayed, until I set the colour for one of the sides, then all other colours start showing, just like in 1.

Seems like some refresh bug in FreeCAD to me :?:
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Colours lost upon loading a file.

Post by Roy_043 »

After retesting I find it depends on how the LinkGroup is created. If you create it as an empty group and then drop the colored object into it the problem does not occur. The problem occurs if you pre-select the colored object and then create the group.
Винтч0
Posts: 19
Joined: Thu Nov 17, 2022 6:59 am

Re: Colours lost upon loading a file.

Post by Винтч0 »

Indeed, I tried and received your result.
Possibly this is https://github.com/FreeCAD/FreeCAD/issues/6131.
Post Reply