Open andrea-bistacchi opened 4 months ago
The same bug affects changing actor opacity.
The bug was due to some entities not being shown as actors in cross sections (oly entities belonging to the section are shown as actors).
This was already captured by a condition when changing line thickness and color, but not for opacity and point size (*):
sec_uid = self.this_x_section_uid
attr = getattr(self.parent, collection)
if attr.get_uid_x_section(uid=uid) == sec_uid:
I solved by adding the condition
if uid in self.actors_df.uid:
in:
change_actor_color
change_actor_opacity
change_actor_line_thick
change_actor_point_size
in the BaseView
class.
It is possible that the condition above (*) on the section could be removed now, but...
PZero does not crash anymore when changing point size or opacity, however for some strange reason if color is changed in legend, it does not change in cross sections.
With a cross section window open, changing the point size for any PolyData results in a crash.