Skip to content

Commit

Permalink
Fix for no section name provided
Browse files Browse the repository at this point in the history
  • Loading branch information
JWock82 committed Nov 8, 2023
1 parent 21bb7fc commit a520144
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PyNite/PhysMember.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def descritize(self):
xj = int_nodes[i+1][1]

# Create a new sub-member
new_sub_member = Member3D(name, i_node, j_node, self.material, self.model, self.Iy, self.Iz, self.J, self.A, self.auxNode, self.tension_only, self.comp_only, self.section.name)
if self.section is None: section_name = None
else: section_name = self.section.name
new_sub_member = Member3D(name, i_node, j_node, self.material, self.model, self.Iy, self.Iz, self.J, self.A, self.auxNode, self.tension_only, self.comp_only, section_name)

# Flag the sub-member as active
for combo_name in self.model.LoadCombos.keys():
Expand Down

0 comments on commit a520144

Please sign in to comment.