mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-29 19:10:42 +01:00
debug meshing again...
This commit is contained in:
1 parent
d66e75c183
commit
b20a4c3c3d
3 files changed
+9
-1
No files matched your search
@@ -47,6 +47,10 @@ class InternalMeshing(AMeshingTool):
|
||||
if profiles is None:
|
||||
return []
|
||||
|
||||
for p in profiles:
|
||||
if len(p) < 1:
|
||||
return []
|
||||
|
||||
guide_list = self.get_guide_list(reach, profiles)
|
||||
if guide_list is None:
|
||||
return []
|
||||
|
||||
@@ -58,7 +58,11 @@ logger = logging.getLogger()
|
||||
|
||||
class TableModel(PamhyrTableModel):
|
||||
def get_true_data_row(self, row):
|
||||
|
||||
if len(self._data.data) > 0:
|
||||
bc = self._data.data[row]
|
||||
else:
|
||||
return 0
|
||||
|
||||
return next(
|
||||
map(
|
||||
|
||||
@@ -320,7 +320,7 @@ class MeshingCommand(QUndoCommand):
|
||||
for i in range(self._limites[1] - self._limites[0]):
|
||||
k += 1
|
||||
for p in self._new_profiles[i]:
|
||||
self._reach.insert_profile(k, p)
|
||||
self._reach.insert_profile(k, p.cloned_for(self._reach))
|
||||
k += 1
|
||||
|
||||
# Update selection
|
||||
|
||||
Reference in new issue
Block a user