Commit Graph

17 Commits

Author SHA1 Message Date
Stefan Tröger
22fa3b3922 Extension: Fix order-of-initialisation crash
FreeCADs property system utilises some pointer math to calculate the offset between
property and base class. Due to virtual inheritance of th ePropertyContainer the memory
layout has been changed to rather random, which has lead to crashes dependend on the
order of object initialisation.

The solution is to not make PropertyContaner virtual but a class below, Base::Persitance.
Then the memory layout is random for Persistance, but it is perfectly aligned for the
base class chains from PropertyContainer onwards as well as from Extension onwards.
Hence the proeprty system was changed to take the offset always from those two.
2016-10-08 12:48:34 +02:00
Stefan Tröger
1287f3007a Extensions: Fix rebase errors 2016-10-08 12:48:34 +02:00
Stefan Tröger
c47c34edff Extensions: bring files in correct order 2016-10-08 12:48:34 +02:00
Stefan Tröger
a8d0accdad Extensions: special calls for document object extensions 2016-10-08 12:48:34 +02:00
Stefan Tröger
4c42181e34 Extensions: Show up in the python interface 2016-10-08 12:48:34 +02:00
Stefan Tröger
c5a2419e14 Extensions: Introduce classes and port App groups 2016-10-08 12:48:34 +02:00
Alexander Golubev
dbb5786ffd App/GeoFeatureGroup: derive from DocumentObjectGroup
Refactor GeoFeatureGroup and derive it from DocumentObjectGroup rather
than GeoFeatureObject to unify code of those two classes.
2016-04-12 18:12:17 +02:00
Alexander Golubev
aa32522115 DocumentObjectGroup: fix deleting of groups in case of malformed links
This one prevents thurther object structure damage if
DocumentObjectGroup::Group connains multiple links to the same feature.
Also minorr changes:
 - Fix some spacing
 - Ask the user if he wants to delete group content
2016-04-12 18:12:17 +02:00
jriegel
c46097654f Const correctness in DocumentObjectGroup 2016-04-12 18:12:01 +02:00
wmayer
5370e20ce8 + fixes #0001514: Padding a sketch inside a group fails with error message 2014-04-25 17:28:32 +02:00
wmayer
ce0e6e5cef Make FeaturePython Python binding a template class to avoid code duplication 2013-03-22 00:34:18 +01:00
Yorik van Havre
19b428f36e Revert 'remove unnecessary template code from document group'
Reverts commit 06c683dcf3, because used
by the Arch module
2012-04-22 17:37:00 -03:00
jriegel
dd8a44e103 Merge branch 'master' of ssh://free-cad.git.sourceforge.net/gitroot/free-cad/free-cad
Conflicts:
	src/App/DocumentObjectGroup.cpp
2012-04-19 08:27:49 +02:00
jriegel
06c683dcf3 remove unnecessary template code from document group and small fix in installer 2012-04-19 08:25:26 +02:00
Yorik van Havre
41523af62c Added ViewProviderDocumentObjectGroupPython 2012-04-18 16:59:26 -03:00
Yorik van Havre
d89c170e9f Changed Group property of App::DocumentObjectGroup to writeable
So in App::DocumentObjectGroupPython instance there is an easy
way to manipulate group contents.
2012-04-18 15:46:50 -03:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00