You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the thread [1] we need a way to switch on and off the parametric of document objects. Since this should be serialized we have to use a PropertyBool member. If this flags is off we simply have to skip the execute() method inside the recompute() of DocumentObject.
@wwmayer you tell me about this issue, do you think a Freezed state is needed for DocumentObject in order to prevent re-computation?
I had a look on the code and I think it's easy to implement.
A freezed object will always return false to mustRecompute() and it's properties will be readonly.
you tell me about this issue, do you think a Freezed state is needed for DocumentObject in order to prevent re-computation?
Unlike to my suggestion at that time I wouldn't use a PropertyBool any more because this has an extra cost of additional memory for every object type which is unused in 99% of all cases. I prefer to extend the ObjectStatus enum with a further value e.g. "NonParametric" or "Frozen" or whatever.
A frozen object will always return false to mustRecompute()
Yes.
and it's properties will be readonly
This will be a bit tricky because the flag can be reverted and there is no easy way to restore the original status of all properties. I would just leave the properties untouched. It should be checked if doing nothing inside DocumentObject::onChanged is sufficient.
Issue imported from https://tracker.freecad.org/view.php?id=402
Original report text
According to the thread [1] we need a way to switch on and off the parametric of document objects. Since this should be serialized we have to use a PropertyBool member. If this flags is off we simply have to skip the execute() method inside the recompute() of DocumentObject.
[1] http://forum.freecadweb.org/viewtopic.php?f=8&t=1070&p=8654#p8652
Other bug information
Discussion from Mantis ticket
Comment by bejant 2015-05-28 14:01
Here's a new link to the topic, after the FreeCAD forum moved from SourceForge:
http://forum.freecadweb.org/viewtopic.php??f=8&t=1070&p=8654#p8652
Comment by Kunda1 2018-06-13 13:27
Unassigning Jriegel
Comment by Kunda1 2018-08-26 11:20
Updated URL in ticket summary from old sourceforge URL
Comment by Kunda1 2019-01-01 13:13
New discussion at https://forum.freecadweb.org/viewtopic.php?f=8&t=33101
The text was updated successfully, but these errors were encountered: