FreeCAD icon indicating copy to clipboard operation
FreeCAD copied to clipboard

Partial fix Freeze

Open FlachyJoe opened this issue 2 years ago • 15 comments

Fix #12829

Ping @maxwxyz

  • [x] Frozen state does not persist on save and opening a file. If I freeze an object, alter it and save it, the alteration is not displayed. When reopening, the modified object is visible and the object is not frozen anymore (recompute at opening). The last modification before closing is now irreversible and lost, although the object was frozen and shouln't be altered. a 'freezed' object now prevent the document to be saved.

  • [x] If a PartDesign body is frozen, all nested features can be changed and alter the frozen body. linked objects are 'freezed' / 'unfreezed' when the state changes

  • [x] A frozen body can be chamfered in the PartWB. After that it cannot be unfrozen again. Part_Chamfer create a new ('unfreezed') object, the nested Body is still 'freezed' and 'unfreezable'

  • [x] A frozen sketch can be activated but is displayed empty in the Sketcher WB

  • [x] The visibility eye icon does not change its state when clicked but the visibillity in the 3D view is toggled (reproduced with a nested sketch in a PartDesign Pad feature) Also reproduceable with nested object which are frozen inside of a group (e.g. walls in an arch group)

  • [ ] Frozen command does not register with undo/redo It acts on the object state not on a property. The object is not modified. Not sure it's needed

  • [ ] If you use a part of a frozen object to create a new feature it throws an error (tried to pad a face of the frozen feature: Index out of bound) Can not reproduce

  • [ ] If you undo and redo and the body is frozen, all redone features are now outside of the body and cannot be moved inside of the body

  • [ ] You can edit frozen features (e.g. draft objects). They wont change but the edit is permanent. On unfreezing, the edit will be applied.

  • [x] Transform commands move the object, even when frozen. When using Draft WB move, they don't move

  • [x] Placement command moves the frozen object.

  • [ ] Non-reversable operations could be applied to frozen objects (e.g. smooth a frozen mesh). If this is done by accident it is not noticed, as there is no feedback to the user. If the mesh is later unfrozen, the smoothed, decimated shape is visible.

  • [x] The freeze icon is not optimal. It covers the entire icon of the feature, body or object. It is not clear if you want to unfreeze something if this is a body or part container, a spreadsheet or PartDesign features. Maybe it can also be combined with the eye icon as the appearance of the object is frozen Fixed image

  • [ ] Could it be placed in the context menu section at the bottom, where "Mark to recompute" and "Recompute" is located, as I understand it's related to that?

  • [ ] Could it be renamed? I did not figure out what this is doing and had to look through the PRs. Proposals: Exclude from recompute, Lock current state,

  • [ ] Could it have a checkbox like "Active body" (at the top of the context menu), like: [ x ] Locked to see the current state in the context menu

FlachyJoe avatar Mar 10 '24 23:03 FlachyJoe

@FlachyJoe another approach which was brought up by @obelisk79 was to remove the additional snowflake icon and instead desaturate the original icon of the object and color it slightly blue/icy. Maybe the label text of the object could be greyed out as well.

maxwxyz avatar Mar 15 '24 16:03 maxwxyz

@maxwxyz I've currently no idea how to do this but if no one is in a hurry, I'll learn.

FlachyJoe avatar Mar 15 '24 17:03 FlachyJoe

@FlachyJoe did you change something else with the context menu? It renders always on the top edge of the screen, not on mouse location. Only in PD (own context menu) its at the cursor location.

maxwxyz avatar Mar 16 '24 20:03 maxwxyz

@FlachyJoe also here the heads up for the upcoming feature freeze. As there are a lot of open points, are you considering this a post 1.0 PR?

maxwxyz avatar May 15 '24 18:05 maxwxyz

@maxwxyz this is a bug fix not concerned by feature freeze but should be done before release, right?

FlachyJoe avatar May 15 '24 19:05 FlachyJoe

Yes

maxwxyz avatar May 16 '24 03:05 maxwxyz

@FlachyJoe Will some of those fixes make it 1.0? It would be good to have the Freeze option available in Part Design, for instance.

FEA-eng avatar Jun 29 '24 12:06 FEA-eng

I'm not available to end this before release date. The current state with partial fix can be merged.

FlachyJoe avatar Jun 29 '24 14:06 FlachyJoe

I'm not available to end this before release date. The current state with partial fix can be merged.

Sure, no need to fix all the issues at once. If this PR is good to go and fixes some of the issues, please undraft it so that it can be merged.

FEA-eng avatar Jun 29 '24 14:06 FEA-eng

@chennes this is good to merge now right?

adrianinsaval avatar Nov 11 '24 18:11 adrianinsaval

Yes.

chennes avatar Nov 11 '24 18:11 chennes

ok to squash this?

adrianinsaval avatar Nov 13 '24 12:11 adrianinsaval

Squashed and rebased

FlachyJoe avatar Nov 19 '24 16:11 FlachyJoe

Screenshot_20241120_071813

Can the commit subject and body be re-edited. They are very generic, don't mention which ticket it addresses. This is important for folks writing the Release Notes and documentation. TIA

luzpaz avatar Nov 20 '24 12:11 luzpaz

@FlachyJoe unfortunately another conflict due to the large queue of PRs

maxwxyz avatar Nov 26 '24 12:11 maxwxyz

@FlachyJoe ping for conflict

maxwxyz avatar Nov 30 '24 20:11 maxwxyz