291 |
291 |
292 // ============================================================================= |
292 // ============================================================================= |
293 // |
293 // |
294 void LDObject::destroy() |
294 void LDObject::destroy() |
295 { |
295 { |
296 print ("Destroying %1\n", this); |
|
297 |
|
298 // Don't bother during program termination (FIXME) |
296 // Don't bother during program termination (FIXME) |
299 if (IsExiting() == false) |
297 if (IsExiting() == false) |
300 { |
298 { |
301 deselect(); |
299 deselect(); |
302 |
300 |
880 |
878 |
881 // If it's an immediate subfile reference (i.e. this subfile belongs in an |
879 // If it's an immediate subfile reference (i.e. this subfile belongs in an |
882 // explicit file), we need to pre-compile the GL polygons for the document |
880 // explicit file), we need to pre-compile the GL polygons for the document |
883 // if they don't exist already. |
881 // if they don't exist already. |
884 if (a != null and |
882 if (a != null and |
885 a->isImplicit() == false and |
883 a->isCache() == false and |
886 a->polygonData().isEmpty()) |
884 a->polygonData().isEmpty()) |
887 { |
885 { |
888 a->initializeCachedData(); |
886 a->initializeCachedData(); |
889 } |
887 } |
890 }; |
888 }; |