André Caldas
560898907b
Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
...
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.
The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).
Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".
The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
mwganson
4dddfa79fb
[Part::Mirror] fix bug where selection gate was not getting removed on cancel button clicked
2023-12-04 12:40:10 -06:00
Rexbas
a3aeed8c03
Part: Use vector.data() to get data pointer
2023-12-03 12:35:15 +01:00
Rexbas
2d4409f710
Part: Use materialIndex.setValuesPointer() only if the new values are different
2023-12-03 12:35:15 +01:00
bgbsww
a4db18af56
Default freenet to true for sweep to fix rendering bug
2023-12-01 14:02:49 +01:00
Yorik van Havre
3ade39ccf1
Translations ( #11551 )
...
* Updated ts files
* merged crowdin translations
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 11:29:38 -06:00
mwganson
6ea4a743b1
[Part::Mirroring] Add support for mirror plane reference object
2023-11-27 11:17:48 -06:00
bgbsww
aa6da42ca1
Setting on 89.9 as a limit, enforce in dialog and properties
2023-11-22 10:30:54 +01:00
bgbsww
e7a84ea725
Prevent attempting to create an infinite helix
2023-11-22 10:30:54 +01:00
Chris Hennes
90dc4aeb13
Update translations
2023-11-20 13:46:22 -06:00
Chris Hennes
954c2fa03f
Update translations
2023-11-09 12:23:56 -06:00
Chris Hennes
aaa0db3867
Merge pull request #11231 from DeflateAwning/http-cleanup
...
Find and replace http://freecad to https://freecad
2023-11-06 11:16:13 -06:00
Chris Hennes
cf84c171e6
Merge pull request #10978 from FlachyJoe/modernize-type-check
...
Modernize type and derived type checking
2023-11-06 10:44:32 -06:00
wmayer
bec1302fcf
Part: refactor SectionCut
2023-11-02 08:17:06 +01:00
wmayer
25689aa9eb
Part: fix crash in SectionCut
2023-11-02 08:17:06 +01:00
wmayer
d07441a0dd
Part: refactor SectionCut::startCutting()
2023-11-01 16:58:35 +01:00
wmayer
474d5cc037
Part: refactor SectionCut::collectObjects()
2023-11-01 16:58:35 +01:00
wmayer
7f87b917e8
Part: fix manual formatting of SectionCut::setupConnections()
2023-11-01 16:58:35 +01:00
Chris Hennes
b2f069f8b0
Merge branch 'main' into modernize-type-check
2023-10-31 15:46:18 -05:00
wmayer
a1ecc2b543
Part: refactor constructor of SectionCut
2023-10-30 14:36:18 +01:00
wmayer
85f45c9956
Part: refactor onFlipXclicked, onFlipYclicked and onFlipZclicked of SectionCut
2023-10-30 14:36:18 +01:00
wmayer
c3cd1a1191
Part: Fix Move enum to class with static members, fix & suppress some other lint warnnigs
2023-10-30 14:36:18 +01:00
wmayer
b5bbf5433f
Part: Fix many lint warnings in SectionCut
2023-10-30 14:36:18 +01:00
wmayer
4ade6fbfd5
Part: fix check with wrong pointer
2023-10-30 14:36:18 +01:00
DeflateAwning
c847a3d516
Change http to https in SVGs
...
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Include: *.svg
2023-10-29 22:32:59 -06:00
Florian Foinant-Willig
eb55f1fe52
Part: modernize type checking
2023-10-23 18:12:03 +02:00
Roy-043
07210c8378
Updated
2023-10-23 09:19:59 +02:00
Roy-043
61dc74551c
Part: Filter selection GUI texts to sentence case
2023-10-23 09:19:59 +02:00
wmayer
ad77d462df
PD: avoid creation of tmp. std::string in TaskAttacher::onRefName
2023-10-19 15:49:04 +02:00
Adrián Insaurralde Avalos
ed61cbfe91
fix #9348 - Improve Part_Measure_Clear_All tooltip
2023-10-17 17:46:56 +02:00
wmayer
56820718c5
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
2212e68a30
merge master via cli
2023-10-04 13:28:48 -03:00
wmayer
255e9eb434
Part: move CmdSelectFilter and friends from core to Part module
2023-10-03 19:26:28 +02:00
wmayer
77f88d39c3
Part: handle Part_SectionCut in WorkbenchManipulator
2023-10-03 19:26:28 +02:00
wmayer
6b6229e352
Part: handle Part_SectionCut in WorkbenchManipulator
2023-10-03 19:26:28 +02:00
wmayer
f48e79cd04
Part: add WorkbenchManipulator to Part module
2023-10-03 19:26:28 +02:00
liukaiwen
18af697795
Merge remote-tracking branch 'origin/master' into remove_redundant_definition
2023-10-02 01:42:37 +08:00
Chris Hennes
5dfd4d5190
Update translations
2023-09-29 22:57:37 -05:00
liukaiwen
4f8fe8fd4a
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
AgCaliva
1f9bae0de7
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-25 22:58:23 -03:00
Chris Hennes
730d471fb1
Update translations
2023-09-19 22:25:14 -05:00
AgCaliva
4a504437d3
merge master via cli
2023-09-16 02:12:58 -03:00
AgCaliva
280e5e3987
Fixing DOMDocument redefinition
2023-09-16 00:38:41 -03:00
wandererfan
e6fb2c7a88
[Part]allow negative scale factors
2023-09-13 08:13:12 -04:00
wmayer
da6335314d
Part: fix encoding issue in BOPProgressIndicator::Show
2023-09-13 12:04:46 +02:00
wmayer
8597655e6a
Part: move scale command
...
See https://github.com/FreeCAD/FreeCAD/pull/10583#issuecomment-1716187490
2023-09-12 21:19:33 +02:00
Chris Hennes
857ddacb6e
Update translations ( #10613 )
...
* Update translations
* Start: Remove Start.ts
2023-09-10 13:06:26 -05:00
AgCaliva
bcd1ebe537
fixing DOMDocument redefinition on windows
2023-09-09 04:58:38 -03:00
wandererfan
d3b41cf693
[Part]fix canScale logic
...
- fix canScale logic
- remove unused method
- add more comments
2023-09-08 18:04:26 +02:00
wandererfan
47fcdae3a2
[Part]correct handling of preselected objects
2023-09-08 18:04:26 +02:00