@@ -43,17 +43,17 @@ def __init__(self, obj):
4343 obj .addProperty ("App::PropertyPythonObject" , "box_properties" ).box_properties = BoxProperties () # supported https://www.freecadweb.org/wiki/Scripted_objects
4444 obj .addProperty ("App::PropertyPythonObject" , "top_properties" ).top_properties = TopBottomProperties ()
4545 obj .addProperty ("App::PropertyPythonObject" , "bottom_properties" ).bottom_properties = TopBottomProperties ()
46- obj .addProperty ('App::PropertyPythonObject' , 'recompute ' ).recompute = False
46+ obj .addProperty ('App::PropertyPythonObject' , 'need_recompute ' ).need_recompute = False
4747 obj .addProperty ('App::PropertyLinkList' , 'parts' ).parts = []
4848 obj .Proxy = self
4949
5050 def onChanged (self , fp , prop ):
51- if prop == "recompute " :
51+ if prop == "need_recompute " :
5252 self .execute (fp )
5353
5454 def execute (self , fp ):
55- if fp .recompute :
56- fp .recompute = False
55+ if fp .need_recompute :
56+ fp .need_recompute = False
5757
5858 document = fp .Document
5959 computed_parts = makebox .make_box (fp .box_properties , fp .top_properties , fp .bottom_properties )
@@ -161,15 +161,15 @@ def reject(self):
161161 self .obj_box .box_properties = self .box_properties_origin
162162 self .obj_box .bottom_properties = self .bottom_properties_origin
163163 self .obj_box .top_properties = self .top_properties_origin
164- self .obj_box .recompute = True
164+ self .obj_box .need_recompute = True
165165 return True
166166
167167 def preview (self ):
168168 self .general_box_param .get_properties ()
169169 self .dim_box_param .get_properties ()
170170 self .top_box_param .get_properties ()
171171 self .bottom_box_param .get_properties ()
172- self .obj_box .recompute = True
172+ self .obj_box .need_recompute = True
173173
174174
175175class MakeBoxCommand :
0 commit comments