remove interpolation plane when using scene geometry raycasts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user