Python: Rename bpy.data.grease_pencils_v3 to bpy.data.grease_pencils
This renames `bpy.data.grease_pencils_v3` to `bpy.data.grease_pencils`. Part of #125058. Pull Request: https://projects.blender.org/blender/blender/pulls/146904
This commit is contained in:
committed by
Falk David
parent
1067112c11
commit
d2269441bb
@@ -12,10 +12,10 @@ import unittest
|
||||
|
||||
class TestGreasePencil(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.gp = bpy.data.grease_pencils_v3.new("test_grease_pencil")
|
||||
self.gp = bpy.data.grease_pencils.new("test_grease_pencil")
|
||||
|
||||
def tearDown(self):
|
||||
bpy.data.grease_pencils_v3.remove(self.gp)
|
||||
bpy.data.grease_pencils.remove(self.gp)
|
||||
del self.gp
|
||||
|
||||
def test_grease_pencil_new(self):
|
||||
@@ -27,7 +27,7 @@ class TestGreasePencilLayers(unittest.TestCase):
|
||||
tint_factors = [0.3, 0.6, 0.9]
|
||||
|
||||
def setUp(self):
|
||||
self.gp = bpy.data.grease_pencils_v3.new("test_grease_pencil")
|
||||
self.gp = bpy.data.grease_pencils.new("test_grease_pencil")
|
||||
self.gp.layers.new("test_layer01")
|
||||
self.gp.layers.new("test_layer02")
|
||||
self.gp.layers.new("test_layer03")
|
||||
@@ -36,7 +36,7 @@ class TestGreasePencilLayers(unittest.TestCase):
|
||||
layer.tint_factor = self.tint_factors[i]
|
||||
|
||||
def tearDown(self):
|
||||
bpy.data.grease_pencils_v3.remove(self.gp)
|
||||
bpy.data.grease_pencils.remove(self.gp)
|
||||
del self.gp
|
||||
|
||||
def test_grease_pencil_layers_new(self):
|
||||
@@ -85,11 +85,11 @@ class TestGreasePencilLayers(unittest.TestCase):
|
||||
|
||||
class TestGreasePencilFrame(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.gp = bpy.data.grease_pencils_v3.new("test_grease_pencil")
|
||||
self.gp = bpy.data.grease_pencils.new("test_grease_pencil")
|
||||
self.layer = self.gp.layers.new("test_layer01")
|
||||
|
||||
def tearDown(self):
|
||||
bpy.data.grease_pencils_v3.remove(self.gp)
|
||||
bpy.data.grease_pencils.remove(self.gp)
|
||||
del self.gp
|
||||
|
||||
def test_grease_pencil_frame_add(self):
|
||||
@@ -184,7 +184,7 @@ class TestGreasePencilFrame(unittest.TestCase):
|
||||
|
||||
class TestGreasePencilDrawing(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.gp = bpy.data.grease_pencils_v3.new("test_grease_pencil")
|
||||
self.gp = bpy.data.grease_pencils.new("test_grease_pencil")
|
||||
layer = self.gp.layers.new("test_layer01")
|
||||
frame = layer.frames.new(0)
|
||||
self.drawing = frame.drawing
|
||||
@@ -193,7 +193,7 @@ class TestGreasePencilDrawing(unittest.TestCase):
|
||||
self.drawing.add_strokes(stroke_sizes)
|
||||
|
||||
def tearDown(self):
|
||||
bpy.data.grease_pencils_v3.remove(self.gp)
|
||||
bpy.data.grease_pencils.remove(self.gp)
|
||||
del self.gp
|
||||
|
||||
def test_grease_pencil_drawing_add_strokes(self):
|
||||
|
||||
@@ -108,7 +108,7 @@ test_Armature = _test_id_gen("armatures")
|
||||
test_Brush = _test_id_gen("brushes")
|
||||
test_Camera = _test_id_gen("cameras")
|
||||
test_Collection = _test_id_gen("collections")
|
||||
test_GreasePencil = _test_id_gen("grease_pencils_v3")
|
||||
test_GreasePencil = _test_id_gen("grease_pencils")
|
||||
test_HairCurves = _test_id_gen("hair_curves")
|
||||
test_Lattice = _test_id_gen("lattices")
|
||||
test_LineStyle = _test_id_gen("linestyles")
|
||||
|
||||
Reference in New Issue
Block a user