FEM: visibility, do not hide parts which depends on mesh name
- since the mesh object depend on a part and the part can change this can mess up visibiliy
This commit is contained in:
@@ -175,10 +175,6 @@ std::string ViewProviderFemConstraint::gethideMeshShowPartStr(const std::string
|
||||
if \""+showConstr+"\" == amesh.Name:\n\
|
||||
amesh.ViewObject.Visibility = True\n\
|
||||
elif \"Mesh\" in amesh.TypeId:\n\
|
||||
aparttoshow = amesh.Name.replace(\"_Mesh\",\"\")\n\
|
||||
for apart in App.activeDocument().Objects:\n\
|
||||
if aparttoshow == apart.Name:\n\
|
||||
apart.ViewObject.Visibility = True\n\
|
||||
amesh.ViewObject.Visibility = False\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user