remove interpolation plane when using scene geometry raycasts
parent
4da4c2801d
commit
eec1d3c501
|
@ -1,7 +1,7 @@
|
|||
bl_info = {
|
||||
"name": "gp interpolate",
|
||||
"author": "Christophe Seux, Samuel Bernou",
|
||||
"version": (0, 7, 2),
|
||||
"version": (0, 7, 3),
|
||||
"blender": (3, 6, 0),
|
||||
"location": "Sidebar > Gpencil Tab > Interpolate",
|
||||
"description": "Interpolate Grease pencil strokes over 3D",
|
||||
|
|
|
@ -197,6 +197,12 @@ class GP_OT_interpolate_stroke(bpy.types.Operator):
|
|||
target_obj = self.plane
|
||||
|
||||
elif self.settings.method == 'GEOMETRY':
|
||||
## Remove interpolation_plane collection ! (unseen, but can be hit)
|
||||
if interp_plane := bpy.data.objects.get('interpolation_plane'):
|
||||
bpy.data.objects.remove(interp_plane)
|
||||
if interp_col := bpy.data.collections.get('interpolation_tool'):
|
||||
bpy.data.collections.remove(interp_col)
|
||||
|
||||
if col != context.scene.collection:
|
||||
included_cols.append(col.name)
|
||||
## Maybe include a plane just behind geo ? probably bad idea
|
||||
|
|
Loading…
Reference in New Issue