Commit Graph

34183 Commits

Author SHA1 Message Date
Rexbas
7a9fa16762 Gui: Add nullptr check in showRotationCenter 2023-09-05 08:54:11 +02:00
Jonas Bähr
880461593f Sketcher: Fix check in carbonCopy's python interface
Presumably due to an copy/paste error, carbonCopy used to verify the
referenced object via `isExternalAllowed` (just like addExternal).
Now using `isCarbonCopyAllowed`, the resulting error message is the
expected one for wrong objects, not a generic one after the operation
failed.
2023-09-05 08:49:31 +02:00
Chris Hennes
43c322b3b1 Merge pull request #10546 from chennes/addonManagerRefactorCacheCheck
Addon Manager: Refactor local cache update check
2023-09-04 19:53:59 -05:00
Chris Hennes
e23849af35 Addon Manager: Refactor local cache update check 2023-09-04 19:13:18 -05:00
Jonas Bähr
7e84c3f42f Sketcher: Fix wrong format string in PyArg_ParseTuple
The part behind the column represents the function name itself, not an
error message. So previously, an argument error looked like this:
("Give an object" is not the method name)
```
>>> obj.carbonCopy()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object() takes at least 1 argument (0 given)
>>> obj.carbonCopy(123)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object() argument 1 must be str, not int
```

While the format string also supports a text for the complete error message
(using a semicolon instead), I decided against this: Pythons standard text
is more precise than this:
(the type error here is not "Give an object")
```
>>> obj.carbonCopy()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object
>>> obj.carbonCopy(123)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object
```
2023-09-05 00:38:30 +02:00
Jonas Bähr
4db4aeb91a Sketcher: fix docs for solve(..)
Since the docstring was initially written, an additional error code was added.
2023-09-05 00:32:54 +02:00
Chris Hennes
331b764850 Merge pull request #10520 from qewer33/startpage-quickstart-open
StartPage: Add custom CSS option, re-organize preferences and further fixes
2023-09-04 11:54:39 -05:00
Chris Hennes
d57d14321b Web: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
efd11e590d Test: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
217674de04 Surface: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
70e046bbd5 Start: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
db24eeec53 RE: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
714cb0a309 Points: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
7593f0c112 MeshPart: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
b8f8b232cb Inspection: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
c5c2ea3498 Assembly: Final application of pre-commit 2023-09-04 08:18:51 -05:00
wmayer
7681c62468 Test: apply clang format 2023-09-04 07:22:09 -05:00
wmayer
bc2cecb6c8 Test: add to pre-commit hooks 2023-09-04 07:22:09 -05:00
wmayer
4919fa18ff Surface: apply clang format 2023-09-04 07:21:32 -05:00
wmayer
ecc21af1f1 Surface: add to pre-commit hooks 2023-09-04 07:21:32 -05:00
Chris Hennes
791fe02934 Sketcher: Reformat to current clang-format standard 2023-09-04 07:17:28 -05:00
Yorik van Havre
41a1a7a8e6 Merge pull request #10505 from Roy-043/Draft-Fix-angle-range-issue-of-make_circle
Draft: Fix angle range issue of make_circle
2023-09-04 11:29:13 +02:00
Yorik van Havre
f2f2cf1a17 Merge pull request #10464 from Ondsel-Development/bug/remove_gui_dependency
Bug fix: Allow Draft WB to import in FreeCAD headless docker container
2023-09-04 11:22:53 +02:00
Yorik van Havre
dd6b726905 Draft: Workaround failing multifuse in shape2Dview (#10478) 2023-09-04 10:45:56 +02:00
kaktus Jacek
41fb0d45a3 Fem: Removing "constraint" from the names
Removing "constraint" from the names of most FEM workbench features.

https://github.com/FreeCAD/FreeCAD/discussions/10217
2023-09-03 22:29:35 -05:00
qewer33
9dec8d320b Apply pre-commit 2023-09-03 23:51:49 +03:00
qewer33
8bff25d057 Fix CI tests failing 2023-09-03 20:52:58 +03:00
qewer
3656abc578 Merge branch 'master' into startpage-quickstart-open 2023-09-03 19:47:28 +03:00
qewer33
9767898eef StartPage remove hide scrollbars option 2023-09-03 19:30:57 +03:00
qewer33
4e15aa1bfb StartPage fixes 2023-09-03 19:23:13 +03:00
wmayer
0a8292a850 Web: apply clang format 2023-09-03 17:22:44 +02:00
wmayer
17f455b4e6 Web: add to pre-commit hooks 2023-09-03 17:22:44 +02:00
Chris Hennes
1a960286a4 Tests: Reformat to current clang-format standard 2023-09-03 09:51:42 -05:00
Chris Hennes
c1825036a6 Tools: Reformat to current clang-format standard 2023-09-03 09:51:22 -05:00
wandererfan
2e4ed1ae99 [TD]fix selection highlighting from tree 2023-09-03 10:09:42 -04:00
qewer33
2046d8e5a0 Fix StartPage preference widget names 2023-09-03 16:40:58 +03:00
qewer33
f09d503d7b StartPage implement custom CSS preference 2023-09-03 16:21:49 +03:00
wmayer
17bf44ec9a Start: apply clang format 2023-09-03 14:21:53 +02:00
wmayer
102a428745 Start: add to pre-commit hooks 2023-09-03 14:21:53 +02:00
Roy-043
3cf51debca Ammended files based on review 2023-09-03 12:43:34 +02:00
wmayer
9fc5c2d8e4 Base: fixes #10462: mesh.unite() causes segementaion fault 2023-09-03 11:14:34 +02:00
Amritpal Singh
9f8f7c5ab3 Bug fix: Allow Draft WB to import in FreeCAD headless docker container 2023-09-03 12:24:22 +05:30
wandererfan
7ca834acc5 [TD]fix Tolerance format issue in dialog 2023-09-02 21:32:14 -04:00
Roy-043
29c12225d0 Draft: Correct mistake in PR10160 (#10506)
`self.gui_tools_repository` is an instance of a class that manages a dictionary, it is not a dictionary itself.
2023-09-02 23:37:16 +02:00
Roy-043
e02cfb2f38 Typo... 2023-09-02 23:04:41 +02:00
Roy-043
f8a5150e6f Draft: Fix angle range issue of make_circle 2023-09-02 20:48:40 +02:00
Chris Hennes
89579cff6e Addon Manager: Reformat with new Black line length 2023-09-02 13:38:08 -05:00
wmayer
c989a8506e RE: apply clang format 2023-09-02 16:24:25 +02:00
wmayer
c6bc17ffc1 RE: apply clang format 2023-09-02 16:24:25 +02:00
wmayer
7783e683c8 RE: add to pre-commit hooks 2023-09-02 16:24:25 +02:00