onChanged() redundant

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
HurdyGuigui
Posts: 38
Joined: Fri Jan 31, 2014 9:10 am

onChanged() redundant

Post by HurdyGuigui »

Hello,

I am working with scripted objects. Sometime le onChanged() method is triggered even if the new value is the same as before :
if obj.myprop value is 12
if I do

Code: Select all

obj.myprop=12 
then the onChanged method is triggered but actually the prop did'nt changed because the value stay the same.

Is there a method to avoid this? Is it handled in the C code or in python?
Post Reply