feat: Introduce Balloon Lasso Tool for mesh extraction
- Added BalloonTool workspace tool to facilitate the extraction of balloon meshes in the 3D viewport. - Implemented ActivateBalloonTool operator to activate the Balloon Lasso Tool. - Refactored BalloonLasso operator into ExtractBalloon for better clarity and functionality. - Enhanced properties for balloon extraction, including mode, thickness, resolution, and material reuse options. - Updated SnapFormSettings to include new balloon-related properties. - Improved material and image handling for balloon extraction, ensuring compatibility and reusability. - Added tests to validate the registration and functionality of the new balloon tools and properties.
This commit is contained in:
@@ -717,7 +717,7 @@ class ImageDepthTest(unittest.TestCase):
|
||||
|
||||
self.assertEqual(depth_image.name, "img.depth")
|
||||
|
||||
def test_color_name_uses_source_image_base_name(self):
|
||||
def test_color_and_material_names_use_source_image_base_name(self):
|
||||
source_object = SimpleNamespace(
|
||||
data=SimpleNamespace(name="img.png"),
|
||||
)
|
||||
@@ -726,11 +726,19 @@ class ImageDepthTest(unittest.TestCase):
|
||||
self.image_depth.color_data_name(source_object),
|
||||
"img.color",
|
||||
)
|
||||
self.assertEqual(
|
||||
self.image_depth.material_data_name(source_object),
|
||||
"img",
|
||||
)
|
||||
source_object.data.name = "img.png.001"
|
||||
self.assertEqual(
|
||||
self.image_depth.color_data_name(source_object),
|
||||
"img.001.color",
|
||||
)
|
||||
self.assertEqual(
|
||||
self.image_depth.material_data_name(source_object),
|
||||
"img.001",
|
||||
)
|
||||
|
||||
def test_surface_displacement_is_set_to_displacement_only(self):
|
||||
class Material:
|
||||
|
||||
Reference in New Issue
Block a user