Commit Graph

37041 Commits

Author SHA1 Message Date
Florian Foinant-Willig
abd5d4daef FEM: prevent python added properties to be removed 2024-04-29 18:33:45 +02:00
Syres916
d1946bfebe [FEM] CCX Solver and Gmsh Mesh Task Panel Colour output improvements (#13684)
* [FEM] CCX Solver and Gmsh Mesh Task Panel Colour output improvements

* [FEM] CCX Solver TP make time code more prominent

* [FEM] Gmsh mesh TP make time code more prominent
2024-04-29 11:29:00 -05:00
WandererFan
22e157b78c Merge pull request #13644 from wwmayer/default_material
Gui: expose ViewProviderGeometryObject::getUserDefinedMaterial() to Python
2024-04-29 12:28:25 -04:00
sliptonic
5b10ed9cd8 Merge pull request #13673 from chennes/startFixCardWidth
Start: Correct card size calculation
2024-04-29 11:27:19 -05:00
Roy-043
7dc978948d Gui: DlgSettingsNavigation.ui fix misalignment of Corner label 2024-04-29 11:26:11 -05:00
0penBrain
7b85e8fc48 Cmake: pass 'undefined' with double dash so alternative linker can be used 2024-04-29 18:25:17 +02:00
MisterMaker
2d49fcefe2 Overlay fix for default windows style and other light theme's. (#12573)
* Removing white spaces

* Fixes made by Kadet

I am cleaning up my previous PR because of the white space removal.
I now make a single commit with the white space stuff and one with Kadet fixes.

Co-Authored-By: Kacper Donat <kacper@kadet.net>

* Delete CMakeSettings.json

screwed it up

* added stylesheet for example code.

* added example to cmakelist

* Mouse over fix

This fixes the mouse over issue!

Co-Authored-By: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>

* Added more overlay stylesheet for all options

* Removed reddudant code!

* Fixed the code

Works great!

Co-Authored-By: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>

---------

Co-authored-by: Kacper Donat <kacper@kadet.net>
Co-authored-by: Bas Ruigrok <14298143+Rexbas@users.noreply.github.com>
2024-04-29 11:24:33 -05:00
sliptonic
90842c9df6 Merge pull request #13666 from Roy-043/Gui-Clarify-cache-directory-as-read-only-in-prefs,-add-Browse-tooltip
Gui: Clarify cache directory as read-only in prefs, add Browse tooltip
2024-04-29 11:14:59 -05:00
Chris Hennes
dcbdc1b204 Merge pull request #13665 from wwmayer/fix_memory_leak2
Core: fix possible memory leaks when using parser
2024-04-29 11:14:11 -05:00
Chris Hennes
a45524712d Merge pull request #13576 from wwmayer/issue_13518
Sketcher: Make ValidateSketch scriptable
2024-04-29 11:11:13 -05:00
PaddleStroke
14a12b916a TechDraw: remove 'Project Shape' from Techdraw toolbar 2024-04-29 18:08:50 +02:00
Chris Hennes
77cf3f395f Merge pull request #13642 from wwmayer/fix_memory_leaks
Fix memory leaks
2024-04-29 10:57:51 -05:00
wmayer
c14e735c20 Sketcher: Fix possible crash inside ~CurveConverter()
Accessing the parameter manager inside ~CurveConverter() is undefined behaviour because it will be accessed after the main() function
has been exited.

Fixes #13622
2024-04-29 10:56:15 -05:00
PaddleStroke
6ae13db72a Core: TabBar: fix issue following #13508 2024-04-29 10:55:44 -05:00
marioalexis84
ff285b6c60 Fem: Add radiation heat transfer (#13466)
* FEM: Add radiation heat transfer
* FEM: Add radiation heat transfer to CalculiX writer
* FEM: Update .inp files
* Fem: Rename heat flux ui members

---------

Co-authored-by: FEA-eng <59876896+FEA-eng@users.noreply.github.com>
2024-04-29 10:53:59 -05:00
marioalexis
5d69945f6e Fem: Remove unused view properties 2024-04-29 10:52:52 -05:00
marioalexis
ba0825f605 Fem: Constraint symbol scaling based on shape size - fixes #7030 2024-04-29 10:46:40 -05:00
Nexusnui
e6a547f33c Update importCSG.py
Fixed Scaling with one parameter
2024-04-29 17:46:10 +02:00
WandererFan
34f92f2d5e Merge pull request #13407 from Ondsel-Development/sk_reorganize_tbs
Sketcher: Small reorganization of toolbars
2024-04-29 11:43:52 -04:00
Max
016ff91de2 update icon for assembly recompute 2024-04-29 17:36:00 +02:00
Max
3a57df116d Update context menu with a toggle for suppress property with checkmark (checked when suppressed) 2024-04-29 17:35:14 +02:00
Roy-043
d787f382d5 Only imported modules can be reloaded 2024-04-29 16:15:58 +02:00
Roy-043
6c5cc7d9d9 Draft: legacy DXF importer: downloaded libs should be reloaded
Otherwise old versions will still be used in the current FreeCAD session.
2024-04-29 16:15:58 +02:00
Roy-043
de37e94f32 Draft: legacy DXF importer fix group and layer behavior
Fixes #13621.

Currently the legacy DXF importer creates a main group with the DXF name if a DXF is imported into an existing FreeCAD document. For each DXF layer it then creates a sub-group (or Draft Layer) inside that main group. Objects are nested in the sub-groups (or Draft Layers).

This does not make sense for Draft Layers as they should be nested in the LayerContainer, which should be in the root of the FreeCAD document.

Both for Draft Layers and sub-groups there is the issue that if mutliple DXF files are imported in the same FreeCAD document, exising Draft Layers and sub-groups are not taken into account. For each DXF a new "0" group/layer is created (with a Label that is not "0" and therefore not recognized), and if there are objects on that layer a new group/layer is created for each object (labelled "0001", "0002", "0003", etc).

To solve this the main group with the DXF name is no longer created in the revised code and the layers variable is initialized with the groups/layers that already exist in the FreeCAD document.

Additionally the formatObject function should not format objects that are in Draft Layers. Its action conflicts with the layer mechanism resulting in the last imported object having an incorrect color.
2024-04-29 16:15:16 +02:00
Roy-043
c02df6a5fb Import: C++ DXF importer wrongly scaled polyline bulges
Fixes #13600.
2024-04-29 16:12:17 +02:00
Kacper Donat
c4569561f5 Fix issues with wrong color for preference page tooltips 2024-04-29 13:06:48 +02:00
paullee
9e5fdc9c73 [ArchWall] fix onChanged() length to support ArchSketch 2024-04-29 10:30:09 +02:00
Furgo
60ea786551 Arch: Add HeightPropagate tooltip info (#13584) 2024-04-29 10:27:10 +02:00
wmayer
ed77603af9 PD: Fixes crash if sub-element name of reference axis is empty
This fixes #13656
2024-04-27 07:43:40 +02:00
bgbsww
fa8f29aed4 Toponaming/Part: Fix all getBaseTopoShape calls. Tests and missing code. 2024-04-26 21:15:11 -05:00
Chris Hennes
6174a9bb2e Start: Correct card size calculation
Fixes #13671.
2024-04-26 20:21:26 -05:00
wmayer
bff1efd665 FEM: Make sure that points and normals array have equal size as otherwise a crash may occur 2024-04-26 23:30:20 +02:00
Roy-043
dd882862bf Gui: Clarify cache directory as read-only in prefs, add Browse tooltip
Fixes #13608.
2024-04-26 23:10:05 +02:00
wmayer
499e73f337 Core: fix possible memory leaks when using parser 2024-04-26 21:42:34 +02:00
wmayer
1365a939e9 App: Change default constructor of Material class to use DEFAULT instead of STEEL 2024-04-26 15:06:30 +02:00
Roy-043
d92f74ef01 Merge pull request #13633 from Roy-043/Draft-revert-Draft-WB-changes-from-13294
Draft: revert Draft WB changes from #13294
2024-04-26 10:46:05 +02:00
wmayer
5753fe12c4 Gui: Fix MainWindowPy::removeWindow
See https://forum.freecad.org/viewtopic.php?t=87097
2024-04-26 10:10:25 +02:00
Patryk Skowroński
a4b151e7ff Fix for removeMarkups() 2024-04-25 21:40:39 -05:00
wmayer
e591b95228 Gui: expose ViewProviderGeometryObject::getUserDefinedMaterial() to Python 2024-04-25 17:56:58 +02:00
wmayer
e85954e8a3 App: Create PropertyMaterialList with a single material element 2024-04-25 17:04:36 +02:00
wmayer
a644f75d53 Material: Fix several memory leaks caused by cyclic references
The class MaterialLibrary has a shared pointer to its Material objects and the class Material has a shared pointer to the MaterialLibrary.
The class MaterialManager owns all MaterialLibrary and Material objects in static containers. To resolve the cyclic references the method
cleanup() has been added.

The class ModelLibrary has a shared pointer to its Model objects and the class Model has a shared pointer to the ModelLibrary.
The class ModelManager owns all ModelLibrary and Model objects in static containers. To resolve the cyclic references the method
cleanup() has been added.

The Materials module registers a function to App::CleanupProcess that calls the above cleanup() methods.
NOTE: This registration is only done in debug mode mainly to satisfy memory checkers
2024-04-25 15:47:09 +02:00
wmayer
5f46ee4f14 Material: Fix two direct memory leaks in ModelLoader::addToTree and ModelLoader::loadLibrary 2024-04-25 15:45:15 +02:00
wmayer
200d9eeb84 App: Add class CleanupProcess to allow to free resources when closing the application 2024-04-25 15:44:22 +02:00
WandererFan
53020def86 Merge pull request #13639 from wwmayer/fix_techdraw_issue
TD: Fix compiler warning
2024-04-25 09:18:37 -04:00
wmayer
8210e99b0c Base: Fix memory leak in Quantity::parse
If an exception is thrown then the allocated buffer won't be cleaned up. To make this exception-safe the class
StringBufferCleaner is added using the RAII idiom
2024-04-25 14:34:02 +02:00
wmayer
fada9ed82c TD: Fix compiler warning
Warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
2024-04-25 10:46:24 +02:00
Roy-043
52fcdda6cf Merge pull request #13612 from cjmayo/draft-byteCount
Draft: Fix QImage object has no attribute 'byteCount'
2024-04-25 09:20:10 +02:00
Roy-043
7407eee427 Draft: revert Draft WB changes from #13294
Revert the Draft WB related changes of #13294.
2024-04-24 21:27:04 +02:00
Chris Mayo
b509511f44 Start: Allow system Microsoft GSL to be used 2024-04-24 14:23:21 -05:00
Chris Hennes
1ec93fdbc2 Update translations
Note: Web and Start omitted
2024-04-24 13:58:21 -05:00