Debug finished
parent
672b613bbf
commit
5f04bf6478
|
@ -184,8 +184,9 @@ class GP_OT_interpolate_stroke_velocity(GP_OT_interpolate_stroke_base):
|
|||
#eval_data = eval_ob.data.copy()
|
||||
grid_ob = bpy.data.objects.new('Velocity Grid Object', eval_ob.data.copy())
|
||||
|
||||
#copy_ob = velocity_ob.copy()
|
||||
#scn.collection.objects.link(copy_ob)
|
||||
# copy_ob = velocity_ob.copy()
|
||||
# copy_ob.data = copy_ob.data.copy()
|
||||
# scn.collection.objects.link(copy_ob)
|
||||
|
||||
velocity_ob.modifiers.remove(grid_velocity_mod)
|
||||
|
||||
|
@ -232,8 +233,9 @@ class GP_OT_interpolate_stroke_velocity(GP_OT_interpolate_stroke_base):
|
|||
new_points_3d = [intersect_line_plane(origin, p, plane_co, plane_no) for p in new_points_3d]
|
||||
|
||||
stroke.points.foreach_set('co', [v for p in new_points_3d for v in self.gp.matrix_world.inverted() @p])
|
||||
|
||||
#stroke.points.foreach_set('co', [v for p in points_2d for v in self.gp.matrix_world.inverted() @p])
|
||||
|
||||
#new_points_2d = [ p+vel for p, vel in zip(points_2d, points_velocity)]
|
||||
#stroke.points.foreach_set('co', [v for p in new_points_2d for v in self.gp.matrix_world.inverted() @p])
|
||||
stroke.points.update()
|
||||
|
||||
bpy.data.meshes.remove(grid_ob.data)
|
||||
|
|
|
@ -87,7 +87,7 @@ class GP_PG_interpolate_settings(PropertyGroup):
|
|||
#selection: EnumProperty(default='SELECTED', items=[("SELECTED", "Selected", ""), ("ALL", "All", "")],
|
||||
# description="Stroke to interpolate")
|
||||
|
||||
smooth_level: IntProperty(default=2, min=0, max=10, name='Smooth Level')
|
||||
smooth_level: IntProperty(default=2, min=0, max=20, name='Smooth Level')
|
||||
|
||||
classes = (
|
||||
GP_PG_interpolate_settings,
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue