mos
243acce4e6
Removed redundant float casts
...
fix cast promotions
2023-12-19 14:26:05 +01:00
bgbsww
bd0126812d
Typo fix
2023-12-19 11:17:53 +01:00
bgbsww
dbc76f29e7
Defer to realthunder fix
2023-12-19 11:17:53 +01:00
bgbsww
a8c7373323
Don't override child visibility in Arch BuildingPart or GroupExtensions
2023-12-19 11:17:53 +01:00
IMO
42740e9c56
bugfix: exit() is not async-signal-safe!
2023-12-11 18:10:41 +01:00
André Caldas
89dbab9b0e
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
Abdullah Tahiri
b52d05b11a
App: PropertyStandard - make developer warning only for the developer
...
=====================================================================
Issue #11183
- The message is not useful for the user in terms of content.
- The user can do nothing about it, but move on.
2023-12-09 11:06:04 +01:00
luzpaz
d584643a05
Fix typos
2023-12-06 14:53:48 -05:00
bgbsww
c2bab7a2fa
Move the unit schema into Project Information and remove all Project Unit System code ( #11266 )
...
* Add unit system to Project Information and store with document.
* Remove the project unit system
* Restore correct document activation signalling to fix test fail
* Remove commented out dead lines
* Restore ignore option for project unit schemas
* Whitespace fix
* Refresh after changing units
* Remove field label
* Property editor changes applied to unit system
2023-12-04 13:04:53 -06:00
wmayer
e785786673
MSYS: fix CMake configure and build for MinGW
2023-12-03 18:02:07 +01:00
wmayer
4889bdae1b
MSYS: fix the following warning for MinGW & gcc:
...
'bool App::StringID::isBinary() const' redeclared without dllimport attribute after being referenced with dll linkage
2023-11-28 16:16:34 +01:00
Chris Hennes
cfd41683a5
Core: Enable compiling with MSVC /permissive- ( #11014 )
...
* Base: Fixes for MSVC permissive-
* App: Fixes for MSVC permissive-
* Gui: Fixes for MSVC permissive-
* Main: Fixes for MSVC permissive-
* Fem: Fixes for MSVC permissive-
* Material: Fixes for MSVC permissive-
* Part: Fixes for MSVC permissive-
* Mesh: Fixes for MSVC permissive-
* Points: Fixes for MSVC permissive-
* Robot: Fixes for MSVC permissive-
* TechDraw: Fixes for MSVC permissive-
* Path: Fixes for MSVC permissive-
* Core; Changes per review comments
* TD: Revision from wandererfan
* [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 17:37:29 +01:00
wmayer
0c21c6298c
Base: fix google-explicit-constructor
2023-11-22 23:47:29 +01:00
sliptonic
97added19c
Merge pull request #11273 from chennes/complexGeoDataSerialization
...
ComplexGeoData and PropertyComplexGeoData serialization
2023-11-20 09:55:39 -07:00
Chris Hennes
f25af97811
Update translations
2023-11-09 12:23:56 -06:00
Chris Hennes
a4494ba0a1
App/Toponaming: Minor refactor if read method
2023-11-04 11:47:11 -05:00
Chris Hennes
e2938e7b62
App/Toponaming: Add TNP code to PropertyComplexGeoData
2023-11-04 11:07:52 -05:00
Chris Hennes
554ab69270
App/Toponaming: ComplexGeoData clang-tidy cleanup
2023-11-04 11:07:22 -05:00
Chris Hennes
7c942a0cc8
App/Toponaming: ComplexGeoData serialization
...
Direct copy from TopoNaming branch with only modifications needed to compile against API changes.
2023-11-04 10:24:17 -05:00
Florian Foinant-Willig
741296b82e
Core: modernize type checking
2023-10-23 18:07:07 +02:00
Ajinkya Dahale
d83ba67b82
[Core] Use keyword arguments in DocumentObjectPy addProperty
2023-10-16 17:49:12 +02:00
wmayer
c19a8736b8
Core: fix compiler warning due to boost
2023-10-11 12:04:26 +02:00
wmayer
15622bb519
App: the function findLicense() uses the '==' operator to compare two C strings.
...
This is wrong and leads to failures under Windows.
2023-10-10 13:31:10 +02:00
Florian Foinant-Willig
dbe1c6135a
Fix #10910
2023-10-09 22:54:12 +02:00
wmayer
d305f306df
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
3ac69993c0
merge master via cli
2023-10-04 13:28:48 -03:00
Chris Hennes
6c9be93378
Update translations
2023-09-29 22:57:37 -05:00
dyylanhammond
3b44bba8ac
Change default file saving preferences ( #10781 )
...
* Change default compression level from 3 to 7
* increase default thumbnail size to 256
2023-09-27 16:08:43 -05:00
AgCaliva
a4e90b2609
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-25 22:58:23 -03:00
wmayer
2faf86d249
App: still support __getstate__/__setstate__ for add-ons for < Py3.11
2023-09-25 14:48:54 +02:00
wmayer
ef9936a940
App: fixes #10460 : App::PropertyPythonObject is not saving data
...
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
wmayer
1cdff85086
MSVC: fix warnings and build failure
2023-09-23 19:10:32 +02:00
Chris Hennes
de82b54b63
Merge pull request #10667 from chennes/toponamingHasherToDocument
...
App/Toponaming: Add StringHasher to Document
2023-09-20 13:31:02 -05:00
AgCaliva
cfdbd2322a
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-18 14:01:25 -03:00
bdieterm
c9a802418a
Core, Gui: allow breakpoints in Init.py and InitGui.py of mods
2023-09-18 10:27:51 +02:00
Chris Hennes
144aaba1af
App/Toponaming: Clarify return value of addStringHasher
2023-09-17 14:00:22 -05:00
Chris Hennes
564f829e5c
App/Toponaming: Minor code cleanup
2023-09-17 13:13:37 -05:00
Chris Hennes
9b55b3a70b
App/Toponaming: Add StringHasher to Document
2023-09-17 13:13:37 -05:00
AgCaliva
64f60721a9
merge master via cli
2023-09-16 02:12:58 -03:00
Chris Hennes
0bc6870618
Update translations ( #10613 )
...
* Update translations
* Start: Remove Start.ts
2023-09-10 13:06:26 -05:00
luzpaz
6810c5703d
Fix various typos
2023-09-07 20:34:49 +02:00
Ajinkya Dahale
5300e70eab
[Core] Avoid some seg-fault because of PySequence_Check(nullptr)
2023-09-06 16:17:21 +02:00
luzpaz
40d2a90e3a
Fix typos
2023-08-31 22:29:17 -05:00
AgCaliva
3da00e36a3
Merge Master
2023-08-30 16:24:16 -03:00
AgCaliva
704a5bd10a
Fixed working with tests
2023-08-29 14:41:58 -03:00
Chris Hennes
40f130643a
Update translations
2023-08-29 07:38:09 -05:00
Chris Hennes
393c1020f5
App: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:20 -05:00
wmayer
2c2347f746
Tests: add unit tests for:
...
* TopoShape::getElementTypeAndIndex
* ComplexGeoData::getTypeAndIndex
and fix crashes there when passing a null pointer
2023-08-25 19:23:18 +02:00
wmayer
56ccef84c2
App: refactor ComplexGeoData::getSubElementByName
2023-08-25 19:23:18 +02:00
wmayer
1cf1a90a17
App: modernize C++: use default member init
2023-08-23 19:51:44 +02:00