FEM: mesh boundary layer, change type
This commit is contained in:
@@ -214,7 +214,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
|
||||
def canDragObject(self, dragged_object):
|
||||
if hasattr(dragged_object, "Proxy") \
|
||||
and dragged_object.Proxy.Type == "Fem::FemMeshBoundaryLayer":
|
||||
and dragged_object.Proxy.Type == "Fem::MeshBoundaryLayer":
|
||||
return True
|
||||
elif hasattr(dragged_object, "Proxy") \
|
||||
and dragged_object.Proxy.Type == "Fem::FemMeshGroup":
|
||||
@@ -230,7 +230,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
|
||||
def dragObject(self, selfvp, dragged_object):
|
||||
if hasattr(dragged_object, "Proxy") \
|
||||
and dragged_object.Proxy.Type == "Fem::FemMeshBoundaryLayer":
|
||||
and dragged_object.Proxy.Type == "Fem::MeshBoundaryLayer":
|
||||
objs = self.Object.MeshBoundaryLayerList
|
||||
objs.remove(dragged_object)
|
||||
self.Object.MeshBoundaryLayerList = objs
|
||||
@@ -245,7 +245,7 @@ class _ViewProviderFemMeshGmsh:
|
||||
|
||||
def dropObject(self, selfvp, incoming_object):
|
||||
if hasattr(incoming_object, "Proxy") \
|
||||
and incoming_object.Proxy.Type == "Fem::FemMeshBoundaryLayer":
|
||||
and incoming_object.Proxy.Type == "Fem::MeshBoundaryLayer":
|
||||
objs = self.Object.MeshBoundaryLayerList
|
||||
objs.append(incoming_object)
|
||||
self.Object.MeshBoundaryLayerList = objs
|
||||
|
||||
@@ -37,7 +37,7 @@ class _FemMeshBoundaryLayer(FemConstraint.Proxy):
|
||||
The FemMeshBoundaryLayer object
|
||||
"""
|
||||
|
||||
Type = "Fem::FemMeshBoundaryLayer"
|
||||
Type = "Fem::MeshBoundaryLayer"
|
||||
|
||||
def __init__(self, obj):
|
||||
super(_FemMeshBoundaryLayer, self).__init__(obj)
|
||||
|
||||
@@ -305,7 +305,7 @@ class TestObjectType(unittest.TestCase):
|
||||
"Fem::FemMeshGmsh",
|
||||
type_of_obj(mesh))
|
||||
self.assertEqual(
|
||||
"Fem::FemMeshBoundaryLayer",
|
||||
"Fem::MeshBoundaryLayer",
|
||||
type_of_obj(ObjectsFem.makeMeshBoundaryLayer(doc, mesh))
|
||||
)
|
||||
self.assertEqual(
|
||||
@@ -505,7 +505,7 @@ class TestObjectType(unittest.TestCase):
|
||||
))
|
||||
self.assertTrue(is_of_type(
|
||||
ObjectsFem.makeMeshBoundaryLayer(doc, mesh),
|
||||
"Fem::FemMeshBoundaryLayer"
|
||||
"Fem::MeshBoundaryLayer"
|
||||
))
|
||||
self.assertTrue(is_of_type(
|
||||
ObjectsFem.makeMeshGroup(doc, mesh),
|
||||
@@ -1040,7 +1040,7 @@ class TestObjectType(unittest.TestCase):
|
||||
))
|
||||
self.assertTrue(is_derived_from(
|
||||
mesh_boundarylayer,
|
||||
"Fem::FemMeshBoundaryLayer"
|
||||
"Fem::MeshBoundaryLayer"
|
||||
))
|
||||
|
||||
# FemMeshGroup
|
||||
|
||||
Reference in New Issue
Block a user